7388078630
We add a new set of builtins called `import_builtins`, which will contain import-related builtins, such as `builtins.path` and `builtins.filterSource`. Both can import paths into the store, with various knobs to alter the result, e.g. filtering, renaming, expected hashes. We introduce `filtered_ingest` which will drive the filtered ingestion via the Nix function via the generator machinery, and then we register the root node to the path info service inside the store. `builtins.filterSource` is very simple, `builtins.path` is a more complicated model requiring the same logic albeit more sophisticated with name customization, file ingestion method and expected SHA-256. Change-Id: I1083f37808b35f7b37818c8ffb9543d9682b2de2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10654 Autosubmit: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
46 lines
1.1 KiB
TOML
46 lines
1.1 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"
|
|
nix-compat = { path = "../nix-compat" }
|
|
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"
|
|
thiserror = "1.0.38"
|
|
serde = "1.0.195"
|
|
serde_json = "1.0"
|
|
sha2 = "0.10.8"
|
|
walkdir = "2.4.0"
|
|
|
|
[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.18.2"
|
|
tempfile = "3.8.1"
|
|
test-case = "3.3.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
|