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]
|
2024-08-28 23:54:46 +02:00
|
|
|
anyhow = { workspace = true }
|
|
|
|
async-compression = { workspace = true, features = ["tokio", "bzip2", "gzip", "xz", "zstd"] }
|
|
|
|
async-stream = { workspace = true }
|
|
|
|
blake3 = { workspace = true, features = ["rayon", "std"] }
|
|
|
|
bstr = { workspace = true }
|
|
|
|
bytes = { workspace = true }
|
|
|
|
clap = { workspace = true, features = ["derive", "env"] }
|
|
|
|
count-write = { workspace = true }
|
|
|
|
data-encoding = { workspace = true }
|
2024-07-22 15:09:10 +02:00
|
|
|
ed25519 = { workspace = true }
|
|
|
|
ed25519-dalek = { workspace = true }
|
2024-08-28 23:54:46 +02:00
|
|
|
futures = { workspace = true }
|
|
|
|
lazy_static = { workspace = true }
|
2023-10-09 23:06:02 +02:00
|
|
|
nix-compat = { path = "../nix-compat", features = ["async"] }
|
2024-08-28 23:54:46 +02:00
|
|
|
pin-project-lite = { workspace = true }
|
|
|
|
prost = { workspace = true }
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
|
|
serde_json = { workspace = true }
|
|
|
|
serde_with = { workspace = true }
|
|
|
|
serde_qs = { workspace = true }
|
|
|
|
sha2 = { workspace = true }
|
|
|
|
sled = { workspace = true }
|
|
|
|
thiserror = { workspace = true }
|
|
|
|
tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] }
|
|
|
|
tokio-listener = { workspace = true, features = ["clap", "multi-listener", "sd_listen", "tonic012"] }
|
|
|
|
tokio-stream = { workspace = true, features = ["fs"] }
|
|
|
|
tokio-util = { workspace = true, features = ["io", "io-util", "compat"] }
|
|
|
|
tonic = { workspace = true, features = ["tls", "tls-roots"] }
|
|
|
|
tower = { workspace = true }
|
|
|
|
tower-http = { workspace = true, features = ["trace"] }
|
2023-09-21 21:32:44 +02:00
|
|
|
tvix-castore = { path = "../castore" }
|
2024-08-28 23:54:46 +02:00
|
|
|
url = { workspace = true }
|
|
|
|
walkdir = { workspace = true }
|
|
|
|
reqwest = { workspace = true, features = ["rustls-tls-native-roots", "stream"] }
|
|
|
|
reqwest-middleware = { workspace = true }
|
|
|
|
lru = { workspace = true }
|
|
|
|
parking_lot = { workspace = true }
|
2024-06-27 10:27:29 +02:00
|
|
|
tvix-tracing = { path = "../tracing", features = ["tonic", "reqwest"] }
|
2024-08-28 23:54:46 +02:00
|
|
|
tracing = { workspace = true }
|
|
|
|
tracing-indicatif = { workspace = true }
|
|
|
|
hyper-util = { workspace = true }
|
2024-08-28 23:42:29 +02:00
|
|
|
toml = { version = "0.8.19", optional = true }
|
2024-08-28 23:54:46 +02:00
|
|
|
tonic-health = { workspace = true }
|
|
|
|
redb = { workspace = true }
|
|
|
|
mimalloc = { workspace = true }
|
|
|
|
tonic-reflection = { workspace = true, optional = true }
|
|
|
|
bigtable_rs = { workspace = true, optional = true }
|
2024-04-05 15:54:50 +02:00
|
|
|
|
2022-11-12 00:07:48 +01:00
|
|
|
[build-dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
prost-build = { workspace = true }
|
|
|
|
tonic-build = { workspace = true }
|
2022-12-29 22:47:02 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
async-process = { workspace = true }
|
|
|
|
rstest = { workspace = true }
|
|
|
|
rstest_reuse = { workspace = true }
|
|
|
|
tempfile = { workspace = true }
|
|
|
|
tokio-retry = { workspace = true }
|
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 = []
|