Skip to content

Commit

Permalink
Kitsune2 Top-Level P2P Protocol (#38)
Browse files Browse the repository at this point in the history
* protocol

* test

* fix comment

* review comment

* protoc-prebuilt

* review comments

* protoc_prebuilt optional

* proto build at dev time instead of compile time
  • Loading branch information
neonphog authored Dec 4, 2024
1 parent 0548a4c commit 1c74bb5
Show file tree
Hide file tree
Showing 9 changed files with 425 additions and 0 deletions.
174 changes: 174 additions & 0 deletions Cargo.lock

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

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"crates/core",
"crates/dht",
"crates/memory",
"crates/tool_proto_build",
]
resolver = "2"

Expand All @@ -28,6 +29,8 @@ ctrlc = { version = "3.4.5", features = ["termination"] }
ed25519-dalek = "2.1.1"
# bootstrap_srv uses this to determine worker thread count.
num_cpus = "1.16.0"
# api uses this for the kitsune2 wire protocol.
prost = "0.13.3"
# kitsune types need to be serializable for network transmission.
serde = { version = "1.0.215", features = ["derive"] }
# kitsune2 agent info is serialized as json to improve debugability of
Expand All @@ -41,6 +44,13 @@ tempfile = "3.14.0"
thiserror = "2.0.3"
# this is used by bootstrap_srv as the http server implementation.
tiny_http = "0.12.0"
# --- tool-dependencies ---
# The following workspace dependencies are thus-far only used in unpublished
# tools and so are not needed in any true dependency trees.
# Please be careful to only include them in build dependencies or move them
# above this section.
# --- tool-dependencies ---
prost-build = "0.13.3"
# --- dev-dependencies ---
# The following workspace dependencies are used in crate dev-dependencies.
# Please be careful to only include them in dev dependencies or move them
Expand Down
1 change: 1 addition & 0 deletions crates/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ edition = "2021"
[dependencies]
base64 = { workspace = true }
bytes = { workspace = true }
prost = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
Expand Down
Loading

0 comments on commit 1c74bb5

Please sign in to comment.