tvl-depot/tvix/glue/src
Florian Klink 8181817e53 feat(tvix/glue/fetchers): support file:// URLs
Nix supports file:// - URLs for `fetchurl` and `fetchTarball`.

Convert the enums and function arguments to hold a URL type.
reqwest::Url is a re-export of the url crate, but they don't re-export
the parsing errors, and as we want to hold these in our Error types, add
it to Cargo.toml explicitly.

The Fetcher::download function now checks on the scheme, and either
opens the file locally, or does do a HTTP request as before.

Fetch gets its custom debug impl, removing potentially sensitive
username and password out of URLs.

Change-Id: I777db1fe487370e822cbfec4624034aca5e08045
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11504
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
2024-04-23 12:41:17 +00:00
..
builtins feat(tvix/glue/fetchers): support file:// URLs 2024-04-23 12:41:17 +00:00
tests feat(tvix/glue/fetchers): support file:// URLs 2024-04-23 12:41:17 +00:00
.skip-subtree refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
decompression.rs chore(tvix/glue): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
fetchers.rs feat(tvix/glue/fetchers): support file:// URLs 2024-04-23 12:41:17 +00:00
fetchurl.nix refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
known_paths.rs feat(tvix/glue/fetchers): support file:// URLs 2024-04-23 12:41:17 +00:00
lib.rs refactor(tvix/glue): move Fetch[er] into its own types, fetch lazily 2024-04-23 12:30:48 +00:00
refscan.rs refactor(tvix): move tvix glue code into glue crate 2023-11-04 15:18:44 +00:00
tvix_build.rs feat(tvix/nix-compat): Use StorePath in Output 2024-02-21 11:38:03 +00:00
tvix_io.rs fix(tvix): Avoid buffering file into memory in builtins.hashFile 2024-04-09 17:31:58 +00:00
tvix_store_io.rs feat(tvix/glue/store_io): have KnownPaths track fetches too 2024-04-23 12:40:55 +00:00