tvl-depot/tvix/glue/src
Florian Klink 2beabe968c refactor(nix-compat/store_path): make StorePath generic on S
Similar to how cl/12253 already did this for `Signature`, we apply the
same logic to `StorePath`.

`StorePathRef<'a>'` is now a `StorePath<&'a str>`, and there's less
redundant code for the two different implementation.

`.as_ref()` returns a `StorePathRef<'_>`, `.to_owned()` gives a
`StorePath<String>` (for now).

I briefly thought about only publicly exporting `StorePath<String>`
as `StorePath`, but the diff is not too large and this will make it
easier to gradually introduce more flexibility in which store paths to
accept.

Also, remove some silliness in `StorePath::from_absolute_path_full`,
which now doesn't allocate anymore.

Change-Id: Ife8843857a1a0a3a99177ca997649fd45b8198e6
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12258
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
2024-08-20 15:14:27 +00:00
..
builtins refactor(nix-compat/store_path): make StorePath generic on S 2024-08-20 15:14:27 +00:00
fetchers refactor(tvix/castore): drop {Directory,File,Symlink}Node 2024-08-17 09:46:01 +00:00
tests refactor(tvix): move service addrs into shared clap struct 2024-07-22 13:36:08 +00:00
.skip-subtree refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
fetchurl.nix refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
fetchurl.rs feat(tvix/glue): support builtin:fetchurl 2024-06-12 22:31:17 +00:00
known_paths.rs refactor(nix-compat/store_path): make StorePath generic on S 2024-08-20 15:14:27 +00:00
lib.rs refactor(tvix/eval): Builderize Evaluation 2024-07-06 15:03:46 +00:00
refscan.rs feat(tvix/glue): Add refscanner pattern and AsyncRead 2024-08-16 16:26:18 +00:00
tvix_build.rs chore(tvix/glue): drop some explicit allow(clippy::mutable_key_type) 2024-08-17 15:59:10 +00:00
tvix_io.rs docs(tvix/glue/tvix_io): update doc-comments 2024-08-19 10:24:37 +00:00
tvix_store_io.rs refactor(nix-compat/store_path): make StorePath generic on S 2024-08-20 15:14:27 +00:00