Skip to content

Commit

Permalink
feat(quick-protobuf-codec): reduce allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and jxs committed Nov 7, 2023
1 parent d28ff63 commit 30505cf
Show file tree
Hide file tree
Showing 23 changed files with 1,142 additions and 708 deletions.
1,412 changes: 776 additions & 636 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ quick-protobuf-codec = { version = "0.2.0", path = "misc/quick-protobuf-codec" }
quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" }
rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" }
multiaddr = "0.18.0"
multihash = "0.19.0"

multihash = "0.19.1"
unsigned-varint = { version = "0.8.0" }
asynchronous-codec = { version = "0.7.0" }

[patch.crates-io]

Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rw-stream-sink = { workspace = true }
serde = { version = "1", optional = true, features = ["derive"] }
smallvec = "1.11.0"
thiserror = "1.0"
unsigned-varint = "0.7"
unsigned-varint = { workspace = true }
void = "1"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions misc/multistream-select/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ bytes = "1"
futures = "0.3"
log = "0.4"
pin-project = "1.1.3"
smallvec = "1.11.0"
unsigned-varint = "0.7"
smallvec = "1.11.1"
unsigned-varint = { workspace = true }

[dev-dependencies]
async-std = { version = "1.6.2", features = ["attributes"] }
Expand Down
8 changes: 6 additions & 2 deletions misc/quick-protobuf-codec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ keywords = ["networking"]
categories = ["asynchronous"]

[dependencies]
asynchronous-codec = { version = "0.6" }
asynchronous-codec = { workspace = true }
bytes = { version = "1" }
thiserror = "1.0"
unsigned-varint = { version = "0.7", features = ["asynchronous_codec"] }
unsigned-varint = { workspace = true, features = ["std"] }
quick-protobuf = "0.8"

[dev-dependencies]
futures = "0.3.28"
quickcheck = { workspace = true }

# Passing arguments to the docsrs builder in order to properly document cfg's.
# More information: https://docs.rs/about/builds#cross-compiling
[package.metadata.docs.rs]
Expand Down
Loading

0 comments on commit 30505cf

Please sign in to comment.