snow flurry
40532c9e36
Bincode doesn't support serde's deserialize_any, so it's easier to use JSON for de/serializing events. Since they'll likely be pretty sparse, the size difference shouldn't be a big deal.
33 lines
826 B
TOML
33 lines
826 B
TOML
[package]
|
|
name = "nzr-api"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
figment = { version = "0.10.8", features = ["json", "toml", "env"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
tarpc = { version = "0.34", features = [
|
|
"tokio1",
|
|
"unix",
|
|
"serde-transport",
|
|
"serde-transport-bincode",
|
|
] }
|
|
tokio = { version = "1.0", features = ["macros"] }
|
|
uuid = { version = "1.2.2", features = ["serde"] }
|
|
hickory-proto = { version = "0.24", features = ["serde-config"] }
|
|
log = "0.4.17"
|
|
diesel = { version = "2.2", optional = true }
|
|
futures = "0.3"
|
|
thiserror = "1"
|
|
regex = "1"
|
|
lazy_static = "1"
|
|
tracing = "0.1"
|
|
tokio-serde = { version = "0.9", features = ["bincode"] }
|
|
serde_json = "1"
|
|
|
|
[dev-dependencies]
|
|
uuid = { version = "1.2.2", features = ["serde", "v4"] }
|
|
|
|
[features]
|
|
diesel = ["dep:diesel"]
|
|
mock = []
|