From 40a17acdc11a7bbd45cde834e41c42ba04f4628d Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 22 Dec 2022 15:44:32 +0100 Subject: feat(tvix): add crate2nixGenerate target `mg run //tvix:crate2nixGenerate --` runs crate2nix generate and depotfmt's it afterwards. This removes a frequent point of friction, because the Cargo.nix emitted by crate2nix needs another formatter. Change-Id: I649495980718cd3847d4cff77c9d4bfcb599387c Reviewed-on: https://cl.tvl.fyi/c/depot/+/7612 Tested-by: BuildkiteCI Reviewed-by: grfn --- tvix/README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tvix/README.md') diff --git a/tvix/README.md b/tvix/README.md index 2a482097042e..e06b59bef9e7 100644 --- a/tvix/README.md +++ b/tvix/README.md @@ -14,14 +14,9 @@ single Rust workspace in `//tvix` to maintain the Nix build configuration. When making changes to Cargo dependency configuration in any of the -Rust projects under `//tvix`, be sure to run `crate2nix generate` in -`//tvix` itself and commit the changes to the generated `Cargo.nix` -file. - -`crate2nix` is available via `direnv` inside of depot, or can be built -from the `third_party.nixpkgs.crate2nix` attribute of depot. Make sure -to build it from depot to avoid generating files with a different -version that might have different output. +Rust projects under `//tvix`, be sure to run +`mg run //tvix:crate2nixGenerate --` in `//tvix` itself and commit the changes +to the generated `Cargo.nix` file. ## License structure -- cgit 1.4.1