crunch/crates/crunch-envelope/Cargo.toml

37 lines
918 B
TOML
Raw Normal View History

[package]
name = "crunch-envelope"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bench]]
name = "envelope_benchmark"
harness = false
[features]
default = ["proto", "capnp"]
json = ["dep:serde", "dep:serde_json", "dep:base64"]
proto = ["dep:prost", "dep:prost-types", "dep:bytes"]
capnp = ["dep:capnp"]
[dependencies]
2023-09-24 16:44:59 +02:00
capnp = { version = "0.18.1",optional = true}
thiserror.workspace = true
# Json
serde = { version = "1.0.188" ,optional = true, features = ["derive"] }
serde_json = {version = "1.0.107",optional = true}
base64 = {version = "0.21.4",optional = true}
# Proto
prost = {workspace = true, optional = true}
prost-types = {workspace = true, optional = true}
bytes = {workspace = true, optional = true}
[build-dependencies]
2023-09-24 16:44:59 +02:00
capnpc = "0.18.0"
prost-build = "0.12"
[dev-dependencies]
2023-09-24 16:44:59 +02:00
criterion = { version = "0.5" }