8181817e53
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
57 lines
1.4 KiB
TOML
57 lines
1.4 KiB
TOML
[package]
|
|
name = "tvix-glue"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
async-recursion = "1.0.5"
|
|
bstr = "1.6.0"
|
|
bytes = "1.4.0"
|
|
data-encoding = "2.3.3"
|
|
futures = "0.3.30"
|
|
magic = "0.16.2"
|
|
nix-compat = { path = "../nix-compat" }
|
|
pin-project = "1.1"
|
|
reqwest = { version = "0.11.22", features = ["rustls-tls-native-roots"], default-features = false }
|
|
tvix-build = { path = "../build", default-features = false, features = []}
|
|
tvix-eval = { path = "../eval" }
|
|
tvix-castore = { path = "../castore" }
|
|
tvix-store = { path = "../store", default-features = false, features = []}
|
|
tracing = "0.1.37"
|
|
tokio = "1.28.0"
|
|
tokio-tar = "0.3.1"
|
|
tokio-util = { version = "0.7.9", features = ["io", "io-util", "compat"] }
|
|
thiserror = "1.0.38"
|
|
serde = "1.0.195"
|
|
serde_json = "1.0"
|
|
sha2 = "0.10.8"
|
|
sha1 = "0.10.6"
|
|
md-5 = "0.10.6"
|
|
url = "2.4.0"
|
|
walkdir = "2.4.0"
|
|
|
|
[dependencies.async-compression]
|
|
version = "0.4.6"
|
|
features = ["tokio", "gzip", "bzip2", "xz"]
|
|
|
|
[dependencies.wu-manber]
|
|
git = "https://github.com/tvlfyi/wu-manber.git"
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
hex-literal = "0.4.1"
|
|
lazy_static = "1.4.0"
|
|
nix = { version = "0.27.1", features = [ "fs" ] }
|
|
pretty_assertions = "1.4.0"
|
|
rstest = "0.19.0"
|
|
tempfile = "3.8.1"
|
|
|
|
[features]
|
|
default = ["nix_tests"]
|
|
# Enables running the Nix language test suite from the original C++
|
|
# Nix implementation (at version 2.3) against Tvix.
|
|
nix_tests = []
|
|
|
|
[[bench]]
|
|
name = "eval"
|
|
harness = false
|