crunch/crates/crunch-envelope/Cargo.toml
kjuulh 41f36c09be
feat: with protobuf
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-09-19 08:31:13 +02:00

39 lines
895 B
TOML

[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
[profile.bench]
debug = true
[features]
default = ["json", "proto"]
json = ["dep:serde", "dep:serde_json", "dep:base64"]
proto = ["dep:prost", "dep:prost-types", "dep:bytes"]
[dependencies]
capnp = "0.17.2"
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 = {version = "0.12", optional = true}
prost-types = {version = "0.12", optional = true}
bytes = {version = "0.4", optional = true}
[build-dependencies]
capnpc = "0.17.2"
prost-build = "0.5"
[dev-dependencies]
criterion = { version = "0.4" }