Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
145 lines (130 loc) · 6.4 KB
/
Copy pathCargo.toml
File metadata and controls
145 lines (130 loc) · 6.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[package]
name = "narjar"
version = "0.2.0"
edition = "2024"
rust-version = "1.98"
description = "A filesystem-backed Nix binary cache"
repository = "https://github.com/mjc/narjar"
license = "MIT OR Apache-2.0"
keywords = ["nix", "cache", "nar", "archive"]
categories = ["command-line-utilities", "network-programming", "parser-implementations"]
include = [
"/Cargo.lock",
"/CHANGELOG.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/README.md",
"docs/operations.md",
"benches/micro.rs",
"benches/nar_codec.rs",
"benches/nar_codec_allocations.rs",
"benches/support/**",
"tests/support/**",
"tests/nar_allocations.rs",
"tests/nar_benchmark_options.rs",
"src/**",
"tests/cli.rs",
"tests/application.rs",
"tests/fixtures/nix-2.31.5-http-v0.1.tsv",
"tests/fixtures/tls/**",
"tests/gc_scale.rs",
"tests/nar_decoder.rs",
"tests/nar_encoder.rs",
"tests/operations_examples.rs",
]
[workspace]
members = ["scripts/nar-corpus", "scripts/nar-chunking"]
exclude = ["fuzz"]
default-members = ["."]
[features]
default = ["application"]
application = [
"dep:clap", "dep:crossbeam-channel", "dep:digest-io", "dep:ed25519-dalek",
"dep:enum-map", "dep:fluent-uri", "dep:hostname-validator", "dep:lzma-rust2", "dep:xz4rust",
"dep:memchr", "dep:mincdc", "dep:mio", "dep:mdns-sd", "dep:httparse", "dep:postcard", "dep:rustix",
"dep:sqlite", "dep:signal-hook", "dep:serde_json", "dep:subtle",
"dep:tempfile", "dep:structured-zstd", "dep:ureq", "dep:fs_at", "dep:windows-sys", "dep:getrandom", "dep:scopeguard", "dep:if-addrs",
"dep:iroh", "dep:tokio", "dep:h2", "dep:http", "dep:bytes",
]
[[bin]]
name = "narjar"
path = "src/main.rs"
required-features = ["application"]
test = false
[[test]]
name = "cli"
# Compile application unit tests and CLI tests in the binary's private module tree.
path = "tests/application.rs"
required-features = ["application"]
[[test]]
name = "gc_scale"
required-features = ["application"]
[[test]]
name = "nar_benchmark_options"
required-features = ["application"]
[dependencies]
clap = { optional = true, version = "=4.6.7", default-features = false, features = ["cargo", "derive", "env", "error-context", "help", "std", "usage"] }
crossbeam-channel = { optional = true, version = "=0.5.17", default-features = false, features = ["std"] }
data-encoding = { version = "=2.11.1", default-features = false, features = ["alloc"] }
digest-io = { optional = true, version = "=0.1.0", default-features = false }
ed25519-dalek = { optional = true, version = "=3.0.0", default-features = false, features = ["signature"] }
enum-map = { optional = true, version = "=3.1.0", default-features = false, features = ["derive"] }
fluent-uri = { optional = true, version = "=0.4.1", default-features = false, features = ["std", "net"] }
hostname-validator = { optional = true, version = "=1.1.1", default-features = false }
if-addrs = { optional = true, version = "=0.15.0", default-features = false }
getrandom = { optional = true, version = "=0.2.17", default-features = false, features = ["std"] }
lzma-rust2 = { optional = true, version = "=0.21.0", default-features = false, features = ["std", "xz", "encoder", "optimization"] }
xz4rust = { optional = true, version = "=0.2.3", default-features = false, features = ["std", "bcj", "crc64", "sha256", "delta", "no_unsafe"] }
memchr = { optional = true, version = "=2.8.3", default-features = false, features = ["std"] }
mdns-sd = { optional = true, version = "=0.21.6", default-features = false }
mincdc = { version = "=0.1.0", optional = true }
mio = { version = "=1.2.4", optional = true, default-features = false, features = ["net", "os-poll"] }
httparse = { optional = true, version = "=1.10.1", default-features = false, features = ["std"] }
postcard = { optional = true, version = "=1.1.3", default-features = false, features = ["alloc"] }
sha2 = { version = "=0.11.0", default-features = false }
serde = { version = "=1.0.229", features = ["derive"] }
serde_json = { version = "=1.0.151", optional = true }
scopeguard = { version = "=1.2.0", optional = true, default-features = false }
subtle = { optional = true, version = "=2.6.1", default-features = false }
thiserror = "=2.0.21"
tempfile = { optional = true, version = "=3.27.0", default-features = false }
structured-zstd = { optional = true, version = "=0.0.57", default-features = false, features = ["hash", "std", "kernel-sse", "kernel-bmi2", "kernel-avx2", "kernel-neon", "kernel-sve"] }
ureq = { optional = true, version = "=3.4.2", default-features = false, features = ["rustls"] }
iroh = { optional = true, version = "=1.4.1" }
tokio = { optional = true, version = "=1.54.1", default-features = false, features = ["rt-multi-thread", "macros", "time", "io-util", "sync", "net"] }
h2 = { optional = true, version = "=0.4.20" }
http = { optional = true, version = "=1.5.0", default-features = false, features = ["std"] }
bytes = { optional = true, version = "=1.12.1", default-features = false, features = ["std"] }
[dev-dependencies]
rustls = { version = "=0.23.46", default-features = false, features = ["ring", "std"] }
[target.'cfg(target_vendor = "apple")'.dev-dependencies]
# rustix has no Apple mkfifo API; keep FIFO-rejection tests on Darwin.
libc = { version = "=0.2.189", default-features = false }
[target.'cfg(unix)'.dependencies]
rustix = { optional = true, version = "=1.1.6", default-features = false, features = ["event", "fs", "net", "param", "process", "std", "system"] }
sqlite = { optional = true, version = "=0.37.3", default-features = false, features = ["linkage"] }
signal-hook = { optional = true, version = "=0.4.4", default-features = false }
[target.'cfg(windows)'.dependencies]
fs_at = { version = "=0.2.1", default-features = false, optional = true }
windows-sys = { version = "=0.61.2", default-features = false, optional = true, features = [
"Wdk_Foundation", "Wdk_Storage_FileSystem", "Wdk_System_SystemServices",
"Win32_Foundation", "Win32_Networking_WinSock", "Win32_Security", "Win32_Security_Authorization",
"Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_IO",
"Win32_System_Memory", "Win32_System_Pipes", "Win32_System_Threading",
"Win32_System_WindowsProgramming",
] }
[[bench]]
name = "micro"
harness = false
required-features = ["application"]
[[bench]]
name = "nar_codec"
harness = false
required-features = ["application"]
[[bench]]
name = "nar_codec_allocations"
harness = false
[profile.profiling]
inherits = "release"
debug = 2
strip = false