2022-11-11 23:48:24 +01:00
|
|
|
[package]
|
2023-03-14 22:36:10 +01:00
|
|
|
name = "tvix-store"
|
2022-11-11 23:48:24 +01:00
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
2022-12-27 18:10:46 +01:00
|
|
|
anyhow = "1.0.68"
|
2023-09-19 18:46:41 +02:00
|
|
|
async-stream = "0.3.5"
|
2022-11-12 00:40:09 +01:00
|
|
|
blake3 = { version = "1.3.1", features = ["rayon", "std"] }
|
2023-09-21 21:32:44 +02:00
|
|
|
bytes = "1.4.0"
|
2023-02-13 16:47:22 +01:00
|
|
|
clap = { version = "4.0", features = ["derive", "env"] }
|
|
|
|
count-write = "0.1.0"
|
2022-12-29 22:47:02 +01:00
|
|
|
data-encoding = "2.3.3"
|
2023-09-21 21:32:44 +02:00
|
|
|
futures = "0.3.28"
|
2022-12-29 22:47:02 +01:00
|
|
|
lazy_static = "1.4.0"
|
2023-10-09 23:06:02 +02:00
|
|
|
nix-compat = { path = "../nix-compat", features = ["async"] }
|
2023-09-19 18:46:41 +02:00
|
|
|
parking_lot = "0.12.1"
|
2023-09-21 21:32:44 +02:00
|
|
|
pin-project-lite = "0.2.13"
|
2023-10-08 11:47:33 +02:00
|
|
|
prost = "0.12.1"
|
2023-02-13 16:47:22 +01:00
|
|
|
sha2 = "0.10.6"
|
2023-12-11 20:25:34 +01:00
|
|
|
sled = { version = "0.34.7" }
|
2022-12-27 18:10:46 +01:00
|
|
|
thiserror = "1.0.38"
|
2023-10-14 18:58:23 +02:00
|
|
|
tokio = { version = "1.32.0", features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] }
|
|
|
|
tokio-listener = { version = "0.2.2", features = [ "tonic010" ] }
|
2023-09-19 18:46:41 +02:00
|
|
|
tokio-stream = { version = "0.1.14", features = ["fs"] }
|
2023-10-09 23:06:02 +02:00
|
|
|
tokio-util = { version = "0.7.9", features = ["io", "io-util", "compat"] }
|
2023-10-12 20:38:28 +02:00
|
|
|
tonic = { version = "0.10.2", features = ["tls", "tls-roots"] }
|
2023-09-21 21:32:44 +02:00
|
|
|
tower = "0.4.13"
|
2022-12-28 17:17:53 +01:00
|
|
|
tracing = "0.1.37"
|
2023-02-16 16:49:22 +01:00
|
|
|
tracing-subscriber = { version = "0.3.16", features = ["json"] }
|
2023-09-21 21:32:44 +02:00
|
|
|
tvix-castore = { path = "../castore" }
|
2023-06-09 18:07:00 +02:00
|
|
|
url = "2.4.0"
|
2023-09-21 21:32:44 +02:00
|
|
|
walkdir = "2.4.0"
|
2023-10-09 23:06:02 +02:00
|
|
|
async-recursion = "1.0.5"
|
2023-11-18 11:44:38 +01:00
|
|
|
reqwest = { version = "0.11.22", features = ["rustls-tls", "stream"], default-features = false }
|
|
|
|
xz2 = "0.1.7"
|
2022-11-12 00:07:48 +01:00
|
|
|
|
2023-09-16 17:20:34 +02:00
|
|
|
[dependencies.fuse-backend-rs]
|
2023-05-28 09:22:08 +02:00
|
|
|
optional = true
|
2023-09-29 18:50:50 +02:00
|
|
|
# TODO: Switch back to upstream version once https://github.com/cloud-hypervisor/fuse-backend-rs/pull/157 lands.
|
|
|
|
git = "https://github.com/griff/fuse-backend-rs"
|
|
|
|
branch = "macfuse-fix"
|
2023-09-16 20:58:52 +02:00
|
|
|
|
|
|
|
[dependencies.vhost]
|
|
|
|
optional = true
|
|
|
|
version = "0.6"
|
|
|
|
|
|
|
|
[dependencies.vhost-user-backend]
|
|
|
|
optional = true
|
|
|
|
version = "0.8"
|
|
|
|
|
|
|
|
[dependencies.virtio-queue]
|
|
|
|
optional = true
|
|
|
|
version = "0.7"
|
|
|
|
|
|
|
|
[dependencies.vm-memory]
|
|
|
|
optional = true
|
|
|
|
version = "0.10"
|
|
|
|
|
|
|
|
[dependencies.vmm-sys-util]
|
|
|
|
optional = true
|
|
|
|
version = "0.11"
|
|
|
|
|
|
|
|
[dependencies.virtio-bindings]
|
|
|
|
optional = true
|
|
|
|
version = "0.2.1"
|
2023-05-28 09:22:08 +02:00
|
|
|
|
2022-11-26 02:14:02 +01:00
|
|
|
[dependencies.tonic-reflection]
|
|
|
|
optional = true
|
2023-10-08 11:47:33 +02:00
|
|
|
version = "0.10.2"
|
2022-11-26 02:14:02 +01:00
|
|
|
|
2023-05-28 09:22:08 +02:00
|
|
|
[dependencies.libc]
|
|
|
|
optional = true
|
|
|
|
version = "0.2.144"
|
|
|
|
|
2022-11-12 00:07:48 +01:00
|
|
|
[build-dependencies]
|
2023-10-08 11:47:33 +02:00
|
|
|
prost-build = "0.12.1"
|
|
|
|
tonic-build = "0.10.2"
|
2022-12-29 22:47:02 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
test-case = "2.2.2"
|
2022-12-29 21:39:28 +01:00
|
|
|
tempfile = "3.3.0"
|
2023-10-08 13:40:20 +02:00
|
|
|
tokio-retry = "0.3.0"
|
2022-11-26 02:14:02 +01:00
|
|
|
|
|
|
|
[features]
|
2023-10-07 04:17:35 +02:00
|
|
|
default = ["fuse", "tonic-reflection"]
|
2023-09-16 20:54:10 +02:00
|
|
|
fs = ["dep:libc", "dep:fuse-backend-rs"]
|
2023-09-26 09:18:59 +02:00
|
|
|
virtiofs = [
|
|
|
|
"fs",
|
|
|
|
"dep:vhost",
|
|
|
|
"dep:vhost-user-backend",
|
|
|
|
"dep:virtio-queue",
|
|
|
|
"dep:vm-memory",
|
|
|
|
"dep:vmm-sys-util",
|
|
|
|
"dep:virtio-bindings",
|
|
|
|
"fuse-backend-rs?/vhost-user-fs", # impl FsCacheReqHandler for SlaveFsCacheReq
|
|
|
|
"fuse-backend-rs?/virtiofs",
|
|
|
|
]
|
2023-09-16 20:54:10 +02:00
|
|
|
fuse = ["fs"]
|
2023-09-26 09:30:35 +02:00
|
|
|
tonic-reflection = ["dep:tonic-reflection", "tvix-castore/tonic-reflection"]
|