From 9213c9a5a08bf9e17db1234b0f03376c0568e471 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 9 Sep 2024 12:24:39 +0200 Subject: [PATCH] feat: Make Cargo.toml source locations explicit This allows cargo metadata to operate on it without adding the source files to the build. (A choice which will save a few rebuilds of the manual) (cherry picked from commit 1779295f3e13cc15f8422d52a3753bb927ac8fa7) --- rust/nix-c-raw/Cargo.toml | 1 + rust/nix-expr/Cargo.toml | 1 + rust/nix-store/Cargo.toml | 1 + rust/nix-util/Cargo.toml | 1 + 4 files changed, 4 insertions(+) diff --git a/rust/nix-c-raw/Cargo.toml b/rust/nix-c-raw/Cargo.toml index 462a09e..c1bbd01 100644 --- a/rust/nix-c-raw/Cargo.toml +++ b/rust/nix-c-raw/Cargo.toml @@ -5,6 +5,7 @@ edition = "2021" build = "build.rs" [lib] +path = "src/lib.rs" [build-dependencies] bindgen = "0.69.4" diff --git a/rust/nix-expr/Cargo.toml b/rust/nix-expr/Cargo.toml index 1de81e5..1c68648 100644 --- a/rust/nix-expr/Cargo.toml +++ b/rust/nix-expr/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2021" [lib] +path = "src/lib.rs" [dependencies] anyhow = "1.0.79" diff --git a/rust/nix-store/Cargo.toml b/rust/nix-store/Cargo.toml index 3af19d4..2df0340 100644 --- a/rust/nix-store/Cargo.toml +++ b/rust/nix-store/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2021" [lib] +path = "src/lib.rs" [dependencies] anyhow = "1.0.79" diff --git a/rust/nix-util/Cargo.toml b/rust/nix-util/Cargo.toml index e323aa3..a58cb43 100644 --- a/rust/nix-util/Cargo.toml +++ b/rust/nix-util/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2021" [lib] +path = "src/lib.rs" [dependencies] anyhow = "1.0.79"