Compare commits

...

5 Commits

@ -0,0 +1,11 @@
[language-server.rust-analyzer]
command = "rust-analyzer"
[language-server.rust-analyzer.config]
inlayHints.bindingModeHints.enable = false
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false
cargo.features = "all"

864
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
[package] [package]
name = "bromine" name = "bromine"
version = "0.21.0" version = "0.22.1"
authors = ["trivernis <trivernis@protonmail.com>"] authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018" edition = "2018"
readme = "README.md" readme = "README.md"
@ -20,56 +20,56 @@ name = "deserialization_benchmark"
harness = false harness = false
[dependencies] [dependencies]
thiserror = "1.0.30" thiserror = "1.0.56"
tracing = "0.1.34" tracing = "0.1.40"
lazy_static = "1.4.0" lazy_static = "1.4.0"
byteorder = "1.4.3" byteorder = "1.5.0"
async-trait = "0.1.53" async-trait = "0.1.77"
num_enum = "0.5.7" num_enum = "0.7.2"
futures-core = "0.3.21" futures-core = "0.3.30"
trait-bound-typemap = "0.3.3" trait-bound-typemap = "0.3.3"
bytes = "1.1.0" bytes = "1.5.0"
dashmap = "5.2.0" dashmap = "5.5.3"
rmp-serde = { version = "1.1.0", optional = true } rmp-serde = { version = "1.1.2", optional = true }
bincode = { version = "1.3.3", optional = true } bincode = { version = "1.3.3", optional = true }
serde_json = { version = "1.0.79", optional = true } serde_json = { version = "1.0.113", optional = true }
chacha20poly1305 = { version = "0.9.0", optional = true } chacha20poly1305 = { version = "0.10.1", optional = true }
x25519-dalek = { version = "1.2.0", optional = true } x25519-dalek = { version = "2.0.0", optional = true, features = ["static_secrets"] }
rand = { version = "0.8.5", optional = true } rand = { version = "0.8.5", optional = true }
rand_core = { version = "0.6.3", optional = true } rand_core = { version = "0.6.4", optional = true }
sha2 = { version = "0.10.2", optional = true } sha2 = { version = "0.10.8", optional = true }
[dependencies.serde] [dependencies.serde]
optional = true optional = true
version = "1.0.136" version = "1.0.196"
features = [] features = []
[dependencies.tokio] [dependencies.tokio]
version = "1.17.0" version = "1.35.1"
features = ["net", "io-std", "io-util", "sync", "time", "macros", "rt"] features = ["net", "io-std", "io-util", "sync", "time", "macros", "rt"]
[dependencies.postcard] [dependencies.postcard]
version = "0.7.3" version = "1.0.8"
optional = true optional = true
features = ["alloc"] features = ["alloc"]
[dev-dependencies] [dev-dependencies]
rmp-serde = "1.1.0" rmp-serde = "1.1.2"
crossbeam-utils = "0.8.8" crossbeam-utils = "0.8.19"
futures = "0.3.21" futures = "0.3.30"
tracing-subscriber = "0.3.11" tracing-subscriber = "0.3.18"
port_check = "0.1.5" port_check = "0.1.5"
[dev-dependencies.serde] [dev-dependencies.serde]
version = "1.0.136" version = "1.0.196"
features = ["serde_derive"] features = ["serde_derive"]
[dev-dependencies.criterion] [dev-dependencies.criterion]
version = "0.3.5" version = "0.5.1"
features = ["async_tokio", "html_reports"] features = ["async_tokio", "html_reports"]
[dev-dependencies.tokio] [dev-dependencies.tokio]
version = "1.17.0" version = "1.35.1"
features = ["macros", "rt-multi-thread"] features = ["macros", "rt-multi-thread"]
[features] [features]

@ -2,7 +2,8 @@ use crate::prelude::encrypted::{EncryptedStream, Keys};
use crate::prelude::{IPCError, IPCResult}; use crate::prelude::{IPCError, IPCResult};
use crate::protocol::AsyncProtocolStream; use crate::protocol::AsyncProtocolStream;
use bytes::Bytes; use bytes::Bytes;
use chacha20poly1305::aead::{Aead, NewAead}; use chacha20poly1305::aead::Aead;
use chacha20poly1305::KeyInit;
use chacha20poly1305::{ChaCha20Poly1305, Key, Nonce}; use chacha20poly1305::{ChaCha20Poly1305, Key, Nonce};
use rand::thread_rng; use rand::thread_rng;
use rand_core::RngCore; use rand_core::RngCore;

Loading…
Cancel
Save