Skip to content

Commit

Permalink
Commands: sample uds message exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoPonzi committed Nov 1, 2024
1 parent 22e7c2e commit 0e42db0
Show file tree
Hide file tree
Showing 5 changed files with 361 additions and 21 deletions.
219 changes: 214 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions commands/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
log = "^0.4.19"
serde = { version = "^1.0", features = ["derive"] }
serde = { version = "~1.0", features = ["derive"] }
serde_json = "~1.0"
prost = "~0.13"
anyhow = "~1.0"
tokio = { version = "~1.41", features = ["full"] }
tracing = "0.1"

[dev-dependencies]
tracing-test = { version = "0.2", features = ["no-env-filter"] }

[build-dependencies]
prost-build = { version = "~0.13" }
prost-build = { version = "~0.13" }
10 changes: 9 additions & 1 deletion commands/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
## Compile
To compile this crate, you will need protobuf compiler. On debian-like you can run:

apt-get install protobuf-compiler
apt-get install protobuf-compiler


## TODOs:
* do I need to https://docs.rs/tokio/latest/tokio/net/struct.UnixStream.html
`let ready = stream.ready(Interest::READABLE | Interest::WRITABLE).await?;`


https://docs.rs/tokio/latest/tokio/net/struct.UnixListener.html#method.accept
Loading

0 comments on commit 0e42db0

Please sign in to comment.