snix/tvix/glue/src/builtins
Florian Klink c7845f3c88 refactor(tvix/castore): move *Node and Directory to crate root
*Node and Directory are types of the tvix-castore model, not the tvix
DirectoryService model. A DirectoryService only happens to send
Directories.

Move types into individual files in a nodes/ subdirectory, as it's
gotten too cluttered in a single file, and (re-)export all types from
the crate root.

This has the effect that we now cannot poke at private fields directly
from other files inside `crate::directoryservice` (as it's not all in
the same file anymore), but that's a good thing, it now forces us to go
through the proper accessors.

For the same reasons, we currently also need to introduce the `rename`
functions on each *Node directly.

A followup is gonna move the names out of the individual enum kinds, so
we can better represent "unnamed nodes".

Change-Id: Icdb34dcfe454c41c94f2396e8e99973d27db8418
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12199
Reviewed-by: yuka <yuka@yuka.dev>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-08-13 18:39:49 +00:00
..
derivation.nix refactor(tvix/glue): move builtins into separate directory 2023-11-04 15:20:46 +00:00
derivation.rs refactor(tvix/castore): move *Node and Directory to crate root 2024-08-13 18:39:49 +00:00
errors.rs feat(tvix/glue): Implement builtins.storePath 2024-06-05 17:50:15 +00:00
fetchers.rs fix(tvix/glue): reject unknown attrset args for fetch builtins 2024-06-26 16:06:52 +00:00
import.rs refactor(tvix/castore): move *Node and Directory to crate root 2024-08-13 18:39:49 +00:00
mod.rs refactor(tvix): move service addrs into shared clap struct 2024-07-22 13:36:08 +00:00
utils.rs feat(tvix/glue): Implement builtins.fetchurl 2024-03-11 02:21:54 +00:00