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"
|
2022-12-29 22:47:02 +01:00
|
|
|
data-encoding = "2.3.3"
|
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"
|
2023-10-08 11:47:33 +02:00
|
|
|
prost = "0.12.1"
|
2023-03-01 00:37:08 +01:00
|
|
|
opentelemetry = { version = "0.21.0", optional = true}
|
|
|
|
opentelemetry-otlp = { version = "0.14.0", optional = true }
|
|
|
|
opentelemetry_sdk = { version = "0.21.0", features = ["rt-tokio"], optional = true}
|
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-03-15 21:53:43 +01:00
|
|
|
tokio-listener = { version = "0.3.2", features = [ "tonic011" ] }
|
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-03-15 21:53:43 +01:00
|
|
|
tonic = { version = "0.11.0", 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-03-01 00:37:08 +01:00
|
|
|
tracing-opentelemetry = "0.22.0"
|
2024-03-17 20:09:06 +01:00
|
|
|
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "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"
|
2024-03-03 15:47:32 +01:00
|
|
|
reqwest = { version = "0.11.22", features = ["rustls-tls-native-roots", "stream"], default-features = false }
|
2022-11-12 00:07:48 +01:00
|
|
|
|
2022-11-26 02:14:02 +01:00
|
|
|
[dependencies.tonic-reflection]
|
|
|
|
optional = true
|
2024-03-15 21:53:43 +01:00
|
|
|
version = "0.11.0"
|
2022-11-26 02:14:02 +01:00
|
|
|
|
2024-04-05 15:54:50 +02:00
|
|
|
[dependencies.bigtable_rs]
|
|
|
|
optional = true
|
|
|
|
# https://github.com/liufuyang/bigtable_rs/pull/72
|
|
|
|
git = "https://github.com/flokli/bigtable_rs"
|
|
|
|
rev = "0af404741dfc40eb9fa99cf4d4140a09c5c20df7"
|
|
|
|
|
2022-11-12 00:07:48 +01:00
|
|
|
[build-dependencies]
|
2023-10-08 11:47:33 +02:00
|
|
|
prost-build = "0.12.1"
|
2024-03-15 21:53:43 +01:00
|
|
|
tonic-build = "0.11.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"]
|
2023-03-01 00:37:08 +01:00
|
|
|
otlp = ["dep:opentelemetry", "dep:opentelemetry-otlp", "dep:opentelemetry_sdk"]
|
2023-09-26 09:30:35 +02:00
|
|
|
tonic-reflection = ["dep:tonic-reflection", "tvix-castore/tonic-reflection"]
|
2023-03-01 00:37:08 +01:00
|
|
|
virtiofs = ["tvix-castore/virtiofs"]
|
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 = []
|