Skip to content

Commit

Permalink
Updated and modified files for the project
Browse files Browse the repository at this point in the history
- Updated files:
  - Cargo.toml
  - src/protocols/handshake/build.rs
  - src/protocols/handshake/src/lib.rs
  • Loading branch information
Aviksaikat committed Jun 27, 2024
1 parent 18853cd commit f1b0d31
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
24 changes: 16 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [
"src/protocols/handshake"
]

[dependencies]
tokio = { version = "1.38.0", features = ["rt", "rt-multi-thread", "macros"] }
Expand All @@ -22,21 +26,25 @@ libp2p = { version = "0.54.0", git = "https://github.com/libp2p/rust-libp2p", fe
"macros"
] }
libp2p-stream = { git = "https://github.com/libp2p/rust-libp2p" }
#alloy-primitives = "0.7.6"
#alloy-signer = "0.1.2"
#alloy-signer-wallet = "0.0.0-reserved"
#libp2p-stream = "0.1.0-alpha.1"
prost = "0.12.6"
prost-types = "0.12.6"

## Misc
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "ansi", "fmt", "std", "json", "time"] }
tracing = "0.1.40"
rand = "0.8.5"
prost = "0.12.6"
once_cell = "1.19.0"
prost-types = "0.12.6"
thiserror = "1.0.61"
eyre = "0.6.12"
futures = "0.3.30"
tracing-appender = "0.2"
serde_json = "1.0.117"
serde = { version = "1.0.203", features = ["derive"] }

hex = "0.4.3"
humantime = "2.1"
humantime-serde = "1.1"


## alloy
alloy-primitives = "0.7.6"
Expand All @@ -48,4 +56,4 @@ handshake = { path = "src/protocols/handshake" }


[build-dependencies]
prost-build = "0.12.6"
prost-build = "0.12.6"
2 changes: 2 additions & 0 deletions src/protocols/handshake/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use std::io::Result;
extern crate prost_build;

fn main() -> Result<()> {
prost_build::compile_protos(&["src/handshake.proto"], &["src/"])?;
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions src/protocols/handshake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ pub mod swarm {
// https://docs.rs/prost-build/latest/prost_build/

extern crate prost;
extern crate libp2p;
// extern crate libp2p;
// use libp2p::StreamProtocol;
pub use swarm::handshake;


// const HANDSHAKE_PROTOCOL: StreamProtocol = StreamProtocol::new("/swarm/handshake/11.0.0/handshake");
// const HANDSHAKE_PROTOCOL: StreamProtocol = StreamProtocol::new("/swarm/handshake/11.0.0/handshake");

0 comments on commit f1b0d31

Please sign in to comment.