From bb185b2c6eb8c4e035cddb61be772169df1b0139 Mon Sep 17 00:00:00 2001 From: Jürgen Hahn Date: Wed, 28 Dec 2022 10:28:37 +0100 Subject: feat(tvix/derivation): serialize Nix Derivation This adds a Derivation structure and allows to write it to a structure that implements std::fmt:Write. The implementation is based on the go-nix version. Change-Id: Ib54e1202b5c67f5d206b21bc109a751e971064cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/7659 Reviewed-by: flokli Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/derivation/Cargo.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tvix/derivation/Cargo.toml (limited to 'tvix/derivation/Cargo.toml') diff --git a/tvix/derivation/Cargo.toml b/tvix/derivation/Cargo.toml new file mode 100644 index 000000000000..99dfbb3a104f --- /dev/null +++ b/tvix/derivation/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "derivation" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +glob = "0.3.0" +serde = { version = "1.0", features = ["derive"] } + +[dev-dependencies.test-generator] +# This fork of test-generator adds support for cargo workspaces, see +# also https://github.com/frehberg/test-generator/pull/14 +git = "https://github.com/JamesGuthrie/test-generator.git" +rev = "82e799979980962aec1aa324ec6e0e4cad781f41" + +[dev-dependencies] +serde_json = "1.0" -- cgit 1.4.1