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"
|
2024-04-30 11:17:20 +02:00
|
|
|
async-compression = { version = "0.4.9", features = ["tokio", "bzip2", "gzip", "xz", "zstd"]}
|
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"] }
|
2024-02-20 06:12:37 +01:00
|
|
|
bstr = "1.6.0"
|
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"
|
2024-06-30 18:54:27 +02:00
|
|
|
data-encoding = "2.6.0"
|
2023-12-24 21:56:48 +01:00
|
|
|
futures = "0.3.30"
|
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-21 21:32:44 +02:00
|
|
|
pin-project-lite = "0.2.13"
|
2024-07-20 20:15:42 +02:00
|
|
|
prost = "0.13.1"
|
2024-04-05 15:54:50 +02:00
|
|
|
serde = { version = "1.0.197", features = [ "derive" ] }
|
2024-04-12 18:23:25 +02:00
|
|
|
serde_json = "1.0"
|
2024-04-05 15:54:50 +02:00
|
|
|
serde_with = "3.7.0"
|
|
|
|
serde_qs = "0.12.0"
|
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"] }
|
2024-07-20 20:15:42 +02:00
|
|
|
tokio-listener = { version = "0.4.2", features = [ "clap", "multi-listener", "sd_listen", "tonic012" ] }
|
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"] }
|
2024-07-20 20:15:42 +02:00
|
|
|
tonic = { version = "0.12.0", features = ["tls", "tls-roots"] }
|
2023-09-21 21:32:44 +02:00
|
|
|
tower = "0.4.13"
|
2024-07-20 20:15:42 +02:00
|
|
|
tower-http = { version = "0.5.0", features = ["trace"] }
|
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"
|
2024-07-20 20:15:42 +02:00
|
|
|
reqwest = { version = "0.12.0", features = ["rustls-tls-native-roots", "stream"], default-features = false }
|
|
|
|
reqwest-middleware = "0.3.0"
|
2024-05-10 06:51:18 +02:00
|
|
|
lru = "0.12.3"
|
2024-05-10 07:31:11 +02:00
|
|
|
parking_lot = "0.12.2"
|
2024-06-27 10:27:29 +02:00
|
|
|
tvix-tracing = { path = "../tracing", features = ["tonic", "reqwest"] }
|
2024-06-06 15:44:11 +02:00
|
|
|
tracing = "0.1.40"
|
2024-04-17 18:44:07 +02:00
|
|
|
tracing-indicatif = "0.3.6"
|
2024-07-20 20:15:42 +02:00
|
|
|
hyper-util = "0.1.6"
|
2024-07-21 19:17:16 +02:00
|
|
|
toml = { version = "0.8.15", optional = true }
|
2024-07-22 15:41:32 +02:00
|
|
|
tonic-health = { version = "0.12.1", default-features = false }
|
2024-07-21 00:36:19 +02:00
|
|
|
redb = "2.1.1"
|
2022-11-12 00:07:48 +01:00
|
|
|
|
2022-11-26 02:14:02 +01:00
|
|
|
[dependencies.tonic-reflection]
|
|
|
|
optional = true
|
2024-07-20 20:15:42 +02:00
|
|
|
version = "0.12.0"
|
2022-11-26 02:14:02 +01:00
|
|
|
|
2024-04-05 15:54:50 +02:00
|
|
|
[dependencies.bigtable_rs]
|
|
|
|
optional = true
|
2024-07-01 09:48:23 +02:00
|
|
|
version = "0.2.10"
|
2024-04-05 15:54:50 +02:00
|
|
|
|
2022-11-12 00:07:48 +01:00
|
|
|
[build-dependencies]
|
2024-07-20 20:15:42 +02:00
|
|
|
prost-build = "0.13.1"
|
|
|
|
tonic-build = "0.12.0"
|
2022-12-29 22:47:02 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-04-05 15:54:50 +02:00
|
|
|
async-process = "2.1.0"
|
2024-04-10 13:37:45 +02:00
|
|
|
rstest = "0.19.0"
|
2024-03-27 12:11:39 +01:00
|
|
|
rstest_reuse = "0.6.0"
|
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]
|
2024-03-19 10:46:12 +01:00
|
|
|
default = ["cloud", "fuse", "otlp", "tonic-reflection"]
|
2024-04-05 15:54:50 +02:00
|
|
|
cloud = [
|
|
|
|
"dep:bigtable_rs",
|
|
|
|
"tvix-castore/cloud"
|
|
|
|
]
|
chore(tvix): move store/fs to castore/fs
With the recent introduction of the RootNodes trait, there's nothing in
the fs module pulling in tvix-store dependencies, so it can live in
tvix-castore.
This allows other crates to make use of TvixStoreFS, without having to
pull in tvix-store.
For example, a tvix-build using a fuse mountpoint at /nix/store doesn't
need a PathInfoService to hold the root nodes that should be present,
but just a list.
tvix-store now has a pathinfoservice/fs module, which contains the
necessary glue logic to implement the RootNodes trait for a
PathInfoService.
To satisfy Rust orphan rules for trait implementations, we had to add a
small wrapper struct. It's mostly hidden away by the make_fs helper
function returning a TvixStoreFs.
It can't be entirely private, as its still leaking into the concrete
type of TvixStoreFS.
tvix-store still has `fuse` and `virtiofs` features, but they now simply
enable these features in the `tvix-castore` crate they depend on.
The tests for the fuse functionality stay in tvix-store for now, as
they populate the root nodes through a PathInfoService.
Once above mentioned "list of root nodes" implementation exists, we
might want to shuffle this around one more time.
Fixes b/341.
Change-Id: I989f664827a5a361b23b34368d242d10c157c756
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10378
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2023-12-16 23:16:22 +01:00
|
|
|
fuse = ["tvix-castore/fuse"]
|
2024-06-06 15:44:11 +02:00
|
|
|
otlp = ["tvix-tracing/otlp"]
|
2023-09-26 09:30:35 +02:00
|
|
|
tonic-reflection = ["dep:tonic-reflection", "tvix-castore/tonic-reflection"]
|
2024-06-14 13:17:37 +02:00
|
|
|
tracy = ["tvix-tracing/tracy"]
|
2023-03-01 00:37:08 +01:00
|
|
|
virtiofs = ["tvix-castore/virtiofs"]
|
2024-07-22 17:01:07 +02:00
|
|
|
xp-store-composition = ["toml"]
|
2024-05-02 23:09:46 +02:00
|
|
|
# Whether to run the integration tests.
|
|
|
|
# Requires the following packages in $PATH:
|
|
|
|
# cbtemulator, google-cloud-bigtable-tool
|
|
|
|
integration = []
|
2024-05-13 18:42:50 +02:00
|
|
|
|
|
|
|
[lints]
|
|
|
|
workspace = true
|