From 3dc052c6f472e5755055ed1cac119e1d4fc6f7a3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 11 Oct 2023 16:36:08 -0400 Subject: [PATCH] lib: Include license files when packaging While we're not shipping this on crates.io and probably won't soon, it's useful to be able to run a `cargo package` just in case. The Fedora rust2rpm tool wants license files in the crate tarball. Signed-off-by: Colin Walters --- lib/Cargo.toml | 2 ++ lib/LICENSE-APACHE | 1 + lib/LICENSE-MIT | 1 + 3 files changed, 4 insertions(+) create mode 120000 lib/LICENSE-APACHE create mode 120000 lib/LICENSE-MIT diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 8724d0f4c..0aa1ebd0c 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -8,6 +8,8 @@ repository = "https://github.com/cgwalters/bootc" version = "0.1.0" rust-version = "1.64.0" +include = ["/src", "LICENSE-APACHE", "LICENSE-MIT"] + [dependencies] anyhow = "1.0" camino = { version = "1.0.4", features = ["serde1"] } diff --git a/lib/LICENSE-APACHE b/lib/LICENSE-APACHE new file mode 120000 index 000000000..965b606f3 --- /dev/null +++ b/lib/LICENSE-APACHE @@ -0,0 +1 @@ +../LICENSE-APACHE \ No newline at end of file diff --git a/lib/LICENSE-MIT b/lib/LICENSE-MIT new file mode 120000 index 000000000..76219eb72 --- /dev/null +++ b/lib/LICENSE-MIT @@ -0,0 +1 @@ +../LICENSE-MIT \ No newline at end of file