snix/tvix/castore/src/fs
Florian Klink 9586e5c30d refactor(tvix/castore): move src/fs/test into fuse mod
These tests only interact with the FUSE layer, and
import super::fuse to do its work.

However, this only works if the `fuse` feature is enabled, which we
don't do if we enable the `virtiofs` feature only, causing the tests
to fail:

```
❯ cargo test --no-default-features --features virtiofs
   Compiling tvix-castore v0.1.0 (/home/flokli/dev/nixos/code.tvl.fyi-submit2/tvix/castore)
error[E0432]: unresolved import `super::fuse`
  --> castore/src/fs/tests.rs:14:13
   |
14 | use super::{fuse::FuseDaemon, TvixStoreFs};
   |             ^^^^ could not find `fuse` in `super`
```

We move src/fs/tests.rs to src/fs/fuse/tests.rs
(and src/fs/fuse.rs to src/fs/fuse/mod.rs) to better structure this,
which will automatically cause both tests and code to only be built if
we have the `fuse` feature enabled.

Change-Id: I8fbbad3e4457e326bdfd171aa5c43d25d3187b5b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11715
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2024-05-26 19:46:47 +00:00
..
fuse refactor(tvix/castore): move src/fs/test into fuse mod 2024-05-26 19:46:47 +00:00
file_attr.rs refactor(tvix/castore/fs): add InodeData::as_fuse_{entry,file_attr} 2024-04-15 13:59:46 +00:00
inode_tracker.rs chore(tvix): move store/fs to castore/fs 2023-12-22 16:55:18 +00:00
inodes.rs test(tvix): Fix tvix tests on macOS 2024-04-30 00:55:34 +00:00
mod.rs refactor(tvix/castore): move src/fs/test into fuse mod 2024-05-26 19:46:47 +00:00
root_nodes.rs chore(tvix/store): Use BoxStream type alias 2024-01-21 19:41:02 +00:00
virtiofs.rs chore(3p/sources): Bump channels & overlays 2024-04-28 16:39:26 +00:00