2023-09-21 21:32:44 +02:00
|
|
|
[package]
|
|
|
|
name = "tvix-castore"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
async-compression = { workspace = true, features = ["tokio", "zstd"] }
|
|
|
|
async-stream = { workspace = true }
|
|
|
|
async-tempfile = { workspace = true }
|
|
|
|
blake3 = { workspace = true, features = ["rayon", "std", "traits-preview"] }
|
|
|
|
bstr = { workspace = true }
|
|
|
|
bytes = { workspace = true }
|
|
|
|
data-encoding = { workspace = true }
|
|
|
|
digest = { workspace = true }
|
|
|
|
fastcdc = { workspace = true, features = ["tokio"] }
|
|
|
|
futures = { workspace = true }
|
|
|
|
lazy_static = { workspace = true }
|
|
|
|
object_store = { workspace = true, features = ["http"] }
|
|
|
|
parking_lot = { workspace = true }
|
|
|
|
pin-project-lite = { workspace = true }
|
|
|
|
prost = { workspace = true }
|
|
|
|
sled = { workspace = true }
|
|
|
|
thiserror = { workspace = true }
|
|
|
|
tokio-stream = { workspace = true, features = ["fs", "net"] }
|
|
|
|
tokio-util = { workspace = true, features = ["io", "io-util", "codec"] }
|
|
|
|
tokio-tar = { workspace = true }
|
|
|
|
tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] }
|
|
|
|
tonic = { workspace = true }
|
|
|
|
tower = { workspace = true }
|
|
|
|
tracing = { workspace = true }
|
|
|
|
tracing-indicatif = { workspace = true }
|
2024-06-20 11:39:09 +02:00
|
|
|
tvix-tracing = { path = "../tracing", features = ["tonic"] }
|
2024-08-28 23:54:46 +02:00
|
|
|
url = { workspace = true }
|
|
|
|
walkdir = { workspace = true }
|
|
|
|
zstd = { workspace = true }
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
|
|
serde_with = { workspace = true }
|
|
|
|
serde_qs = { workspace = true }
|
|
|
|
petgraph = { workspace = true }
|
|
|
|
erased-serde = { workspace = true }
|
|
|
|
serde_tagged = { workspace = true }
|
|
|
|
hyper-util = { workspace = true }
|
|
|
|
redb = { workspace = true }
|
|
|
|
bigtable_rs = { workspace = true, optional = true }
|
|
|
|
fuse-backend-rs = { workspace = true, optional = true }
|
|
|
|
libc = { workspace = true, optional = true }
|
|
|
|
threadpool = { workspace = true, optional = true }
|
|
|
|
tonic-reflection = { workspace = true, optional = true }
|
|
|
|
vhost = { workspace = true, optional = true }
|
|
|
|
vhost-user-backend = { workspace = true, optional = true }
|
|
|
|
virtio-queue = { workspace = true, optional = true }
|
|
|
|
vm-memory = { workspace = true, optional = true }
|
|
|
|
vmm-sys-util = { workspace = true, optional = true }
|
|
|
|
virtio-bindings = { workspace = true, optional = true }
|
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
|
|
|
|
2023-09-21 21:32:44 +02:00
|
|
|
[build-dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
prost-build = { workspace = true }
|
|
|
|
tonic-build = { workspace = true }
|
2023-09-21 21:32:44 +02:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-08-28 23:54:46 +02:00
|
|
|
async-process = { workspace = true }
|
|
|
|
rstest = { workspace = true }
|
|
|
|
tempfile = { workspace = true }
|
|
|
|
tokio-retry = { workspace = true }
|
|
|
|
hex-literal = { workspace = true }
|
|
|
|
rstest_reuse = { workspace = true }
|
|
|
|
xattr = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
2023-09-21 21:32:44 +02:00
|
|
|
|
|
|
|
[features]
|
2024-05-26 16:27:10 +02:00
|
|
|
default = ["cloud"]
|
2024-03-19 10:46:12 +01:00
|
|
|
cloud = [
|
2024-03-19 11:12:03 +01:00
|
|
|
"dep:bigtable_rs",
|
2024-03-19 10:46:12 +01:00
|
|
|
"object_store/aws",
|
|
|
|
"object_store/azure",
|
|
|
|
"object_store/gcp",
|
|
|
|
]
|
2024-06-16 10:43:48 +02:00
|
|
|
fs = ["dep:fuse-backend-rs", "dep:threadpool", "dep:libc"]
|
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
|
|
|
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",
|
|
|
|
]
|
|
|
|
fuse = ["fs"]
|
2023-10-08 13:33:43 +02:00
|
|
|
tonic-reflection = ["dep:tonic-reflection"]
|
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
|