tvl-depot/tvix/store/src/pathinfoservice
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
..
fs refactor(nix-compat/store_path): make StorePath generic on S 2024-08-20 15:14:27 +00:00
tests feat(tvix/store): add redb PathInfoService 2024-07-22 18:49:04 +00:00
bigtable.rs refactor(tvix/store): use composition in tvix_store crate 2024-07-20 19:37:27 +00:00
combinators.rs refactor(tvix/store): use composition in tvix_store crate 2024-07-20 19:37:27 +00:00
from_addr.rs fix(tvix/store): adjust from_addr redb test to do what it says 2024-07-28 17:47:41 +00:00
grpc.rs refactor(tvix/castore): remove name from Nodes 2024-08-17 09:45:58 +00:00
lru.rs refactor(tvix/castore): remove name from Nodes 2024-08-17 09:45:58 +00:00
memory.rs refactor(tvix/store): use composition in tvix_store crate 2024-07-20 19:37:27 +00:00
mod.rs feat(tvix/store): add redb PathInfoService 2024-07-22 18:49:04 +00:00
nix_http.rs refactor(tvix/castore): remove name from Nodes 2024-08-17 09:45:58 +00:00
redb.rs fix(tvix/store) RedbPathInfoService: improve logs and errors 2024-07-29 15:50:11 +00:00
sled.rs fix(tvix/store): Immediately return an error when using sled on / 2024-07-29 16:43:04 +00:00