-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
160 lines (139 loc) · 4.14 KB
/
Cargo.toml
File metadata and controls
160 lines (139 loc) · 4.14 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[package]
name = "box-format"
description = "Support library for the Box open standard archive format."
version = "0.4.0"
authors = ["Brendan Molloy <brendan@bbqsrc.net>"]
edition = "2024"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/bbqsrc/box"
[lib]
crate-type = ["rlib"]
[dependencies]
# Core dependencies (no_std compatible)
box-fst.workspace = true
byteorder.workspace = true
fastvint.workspace = true
hashbrown = "0.15"
# Std-only dependencies
mmap-io = { workspace = true, optional = true }
tokio = { workspace = true, features = ["fs", "io-util", "sync"], optional = true }
tokio-util = { workspace = true, features = ["compat"], optional = true }
async-walkdir = { workspace = true, optional = true }
futures = { workspace = true, optional = true }
blake3 = { workspace = true, features = ["traits-preview", "rayon", "mmap"], optional = true }
hex = { workspace = true, optional = true }
pathdiff = { workspace = true, optional = true }
unic-normal = { workspace = true, optional = true }
unic-ucd = { workspace = true, optional = true }
relative-path = { workspace = true, optional = true }
tracing = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
lru = { workspace = true, optional = true }
thiserror = { workspace = true, optional = true }
digest = { workspace = true, optional = true }
sysinfo = { workspace = true, optional = true }
tempfile = { workspace = true, optional = true }
string-interner = { workspace = true, optional = true }
zstd = { workspace = true, optional = true }
zstd-safe = { workspace = true, optional = true }
xz2 = { workspace = true, optional = true }
[features]
default = ["std", "xz", "zstd", "writer", "reader", "xattr"]
# no_std support
std = [
"alloc",
"dep:mmap-io",
"dep:tokio",
"dep:tokio-util",
"dep:async-walkdir",
"dep:futures",
"dep:blake3",
"dep:hex",
"dep:pathdiff",
"dep:unic-normal",
"dep:unic-ucd",
"dep:relative-path",
"dep:tracing",
"dep:serde_json",
"dep:lru",
"dep:thiserror",
"dep:digest",
"dep:sysinfo",
"dep:tempfile",
"dep:string-interner",
]
alloc = []
# Minimal kernel build (core parsing only)
kernel = ["alloc"]
reader = ["std"]
writer = ["reader"]
xz = ["dep:xz2"]
zstd = ["dep:zstd", "dep:zstd-safe"]
xattr = ["dep:xattr"]
[target.'cfg(unix)'.dependencies]
xattr = { workspace = true, optional = true }
[workspace]
resolver = "3"
members = ["cli", "crates/*"]
exclude = ["kmod/rust"]
[workspace.dependencies]
# Shared dependencies
tokio = { version = "1", default-features = false }
tokio-util = { version = "0.7", default-features = false }
futures = "0.3"
async-walkdir = "2.1.0"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
byteorder = "1.3.4"
fastvint = { git = "https://github.com/bbqsrc/fastvlq", branch = "vint" }
# Error handling
thiserror = "2"
miette = { version = "7", features = ["fancy"] }
# Logging/tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
# Crypto/hashing
blake3 = "1"
# Compression
async-compression = { version = "0.4", default-features = false, features = ["tokio"] }
tokio-snappy = { version = "0.2.0" }
zstd = "0.13.3"
zstd-safe = "7.2"
xz2 = "0.1.7"
# System
libc = "0.2"
sysinfo = "0.37"
tempfile = "3"
num_cpus = "1.16"
xattr = "1"
# CLI
clap = { version = "4", features = ["derive"] }
indicatif = "0.18"
glob = "0.3"
humansize = { version = "2.1", features = ["impl_style"] }
chrono = "0.4"
wild = "2.0"
textwrap = "0.16"
# Other
lru = "0.14"
mmap-io = { version = "0.9.4", features = ["async", "hugepages"] }
hex = "0.4"
pathdiff = "0.2"
unic-normal = "0.9"
unic-ucd = "0.9"
relative-path = "2.0"
cffi = { git = "https://github.com/cffi-rs/cffi", branch = "next" }
pin-project-lite = "0.2"
digest = "0.11"
string-interner = "0.19"
smallvec = "1.13"
fuser = { version = "0.16.0", features = ["libfuse"] }
# objc2 for macOS framework bindings
objc2 = "0.6"
objc2-foundation = "0.3"
block2 = "0.6"
# Workspace crates
box-format = { version = "0.4.0", path = "." }
box-fst = { version = "0.1.0", path = "crates/fst", default-features = false }
mimalloc = { version = "0.1", features = ["v3"] }