2023-01-31 12:18:03 +01:00
|
|
|
[package]
|
|
|
|
name = "nix-compat"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
2023-10-09 23:06:02 +02:00
|
|
|
[features]
|
2024-05-26 19:33:18 +02:00
|
|
|
# async NAR writer. Also needs the `wire` feature.
|
2024-04-10 15:33:02 +02:00
|
|
|
async = ["tokio"]
|
2024-04-10 13:54:11 +02:00
|
|
|
# code emitting low-level packets used in the daemon protocol.
|
2024-07-20 11:25:04 +02:00
|
|
|
wire = ["tokio", "pin-project-lite", "bytes"]
|
2024-07-22 16:51:42 +02:00
|
|
|
test = []
|
2023-10-09 23:06:02 +02:00
|
|
|
|
2024-04-18 11:57:10 +02:00
|
|
|
# Enable all features by default.
|
2024-07-22 16:51:42 +02:00
|
|
|
default = ["async", "wire", "nix-compat-derive"]
|
2024-04-18 11:57:10 +02:00
|
|
|
|
2023-01-31 12:18:03 +01:00
|
|
|
[dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
bitflags = { workspace = true }
|
|
|
|
bstr = { workspace = true, features = ["alloc", "unicode", "serde"] }
|
|
|
|
data-encoding = { workspace = true }
|
|
|
|
ed25519 = { workspace = true }
|
|
|
|
ed25519-dalek = { workspace = true }
|
|
|
|
enum-primitive-derive = { workspace = true }
|
|
|
|
glob = { workspace = true }
|
|
|
|
mimalloc = { workspace = true }
|
|
|
|
nom = { workspace = true }
|
|
|
|
num-traits = { workspace = true }
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
|
|
serde_json = { workspace = true }
|
|
|
|
sha2 = { workspace = true }
|
|
|
|
thiserror = { workspace = true }
|
|
|
|
tracing = { workspace = true }
|
|
|
|
bytes = { workspace = true, optional = true }
|
|
|
|
tokio = { workspace = true, features = ["io-util", "macros"], optional = true }
|
|
|
|
pin-project-lite = { workspace = true, optional = true }
|
2024-07-20 11:25:04 +02:00
|
|
|
|
2024-07-22 16:51:42 +02:00
|
|
|
[dependencies.nix-compat-derive]
|
|
|
|
path = "../nix-compat-derive"
|
|
|
|
optional = true
|
|
|
|
|
2023-01-31 12:18:03 +01:00
|
|
|
[dev-dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
criterion = { workspace = true, features = ["html_reports"] }
|
2024-08-29 17:11:23 +02:00
|
|
|
futures = { workspace = true }
|
2024-08-28 23:54:46 +02:00
|
|
|
hex-literal = { workspace = true }
|
|
|
|
lazy_static = { workspace = true }
|
|
|
|
mimalloc = { workspace = true }
|
|
|
|
pretty_assertions = { workspace = true }
|
|
|
|
rstest = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
|
|
|
smol_str = { workspace = true }
|
|
|
|
tokio-test = { workspace = true }
|
|
|
|
zstd = { workspace = true }
|
2023-01-31 14:45:42 +01:00
|
|
|
|
2023-07-31 17:50:48 +02:00
|
|
|
[[bench]]
|
|
|
|
name = "derivation_parse_aterm"
|
|
|
|
harness = false
|
2023-10-27 12:54:31 +02:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "narinfo_parse"
|
|
|
|
harness = false
|