2023-09-17 00:31:43 +02:00
|
|
|
[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]
|
2023-09-19 08:31:13 +02:00
|
|
|
default = ["json", "proto"]
|
2023-09-17 00:31:43 +02:00
|
|
|
json = ["dep:serde", "dep:serde_json", "dep:base64"]
|
2023-09-19 08:31:13 +02:00
|
|
|
proto = ["dep:prost", "dep:prost-types", "dep:bytes"]
|
2023-09-17 00:31:43 +02:00
|
|
|
|
|
|
|
[dependencies]
|
2023-09-24 12:39:07 +02:00
|
|
|
capnp = "0.18.1"
|
2023-09-17 00:31:43 +02:00
|
|
|
thiserror.workspace = true
|
2023-09-19 08:31:13 +02:00
|
|
|
|
|
|
|
# Json
|
2023-09-17 00:31:43 +02:00
|
|
|
serde = { version = "1.0.188" ,optional = true, features = ["derive"] }
|
|
|
|
serde_json = {version = "1.0.107",optional = true}
|
|
|
|
base64 = {version = "0.21.4",optional = true}
|
|
|
|
|
2023-09-19 08:31:13 +02:00
|
|
|
# Proto
|
|
|
|
prost = {version = "0.12", optional = true}
|
|
|
|
prost-types = {version = "0.12", optional = true}
|
2023-09-24 12:39:07 +02:00
|
|
|
bytes = {version = "1.5", optional = true}
|
2023-09-19 08:31:13 +02:00
|
|
|
|
2023-09-17 00:31:43 +02:00
|
|
|
[build-dependencies]
|
2023-09-24 12:39:07 +02:00
|
|
|
capnpc = "0.18.0"
|
|
|
|
prost-build = "0.12"
|
2023-09-17 00:31:43 +02:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-09-24 12:39:07 +02:00
|
|
|
criterion = { version = "0.5" }
|