Skip to content

Commit

Permalink
Replace prost with protobuf in protocols/rendezvous
Browse files Browse the repository at this point in the history
  • Loading branch information
kckeiks committed Oct 25, 2022
1 parent fbf1fb6 commit cb1ffbb
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 204 deletions.
4 changes: 2 additions & 2 deletions protocols/rendezvous/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
asynchronous-codec = "0.6"
libp2p-core = { version = "0.37.0", path = "../../core" }
libp2p-swarm = { version = "0.40.0", path = "../../swarm" }
prost = "0.11"
protobuf = "3.2"
void = "1"
log = "0.4"
futures = { version = "0.3", default-features = false, features = ["std"] }
Expand All @@ -34,4 +34,4 @@ rand = "0.8"
tokio = { version = "1.15", features = [ "rt-multi-thread", "time", "macros", "sync", "process", "fs", "net" ] }

[build-dependencies]
prost-build = "0.11"
protobuf-codegen = "3.2"
9 changes: 8 additions & 1 deletion protocols/rendezvous/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
fn main() {
prost_build::compile_protos(&["src/rpc.proto"], &["src"]).unwrap();
protobuf_codegen::Codegen::new()
.pure()
.includes(&["src"])
.input("src/rpc.proto")
.customize(protobuf_codegen::Customize::default().lite_runtime(true))
.cargo_out_dir("protos")
.run()
.unwrap()
}
Loading

0 comments on commit cb1ffbb

Please sign in to comment.