Repository: gtk-rs/gtk3-rs (language: rust)

Issue:
License text is not packaged for any crates
The MIT license in the root is referenced as a symlink from the various subcrates in this repo, however, for security reasons, cargo will not package files outside of the root crate manifest when publishing a crate, thus none of the crates in this repo contain the license text when downloaded from crates.io.


Discussion / hints:
We should use [`include`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields), indeed. I'll send a PR shortly.

Fix patch:
diff --git a/atk/Cargo.toml b/atk/Cargo.toml
index 9a6017843fb6..f74acaec108e 100644
--- a/atk/Cargo.toml
+++ b/atk/Cargo.toml
@@ -13,6 +13,7 @@ repository = "https://github.com/gtk-rs/gtk3-rs"
 exclude = [
     "gir-files/*",
 ]
+include = ["../LICENSE"]
 edition = "2018"
 
 [lib]
diff --git a/atk/sys/Cargo.toml b/atk/sys/Cargo.toml
index 289d89dd9eb0..243107614366 100644
--- a/atk/sys/Cargo.toml
+++ b/atk/sys/Cargo.toml
@@ -34,6 +34,7 @@ links = "atk-1.0"
 name = "atk-sys"
 repository = "https://github.com/gtk-rs/gtk3-rs"
 version = "0.15.0"
+include = ["../../LICENSE"]
 edition = "2018"
 [package.metadata.docs.rs]
 features = ["dox"]
diff --git a/gdk/Cargo.toml b/gdk/Cargo.toml
index 7e613961a9b2..f48eeada76a0 100644
--- a/gdk/Cargo.toml
+++ b/gdk/Cargo.toml
@@ -12,6 +12,7 @@ repository = "https://github.com/gtk-rs/gtk3-rs"
 exclude = [
     "gir-files/*",
 ]
+include = ["../LICENSE"]
 edition = "2018"
 
 [lib]
diff --git a/gdk/sys/Cargo.toml b/gdk/sys/Cargo.toml
index edf2db252455..2992b464d047 100644
--- a/gdk/sys/Cargo.toml
+++ b/gdk/sys/Cargo.toml
@@ -47,6 +47,7 @@ links = "gdk-3"
 name = "gdk-sys"
 repository = "https://github.com/gtk-rs/gtk3-rs"
 version = "0.15.0"
+include = ["../../LICENSE"]
 edition = "2018"
 [package.metadata.docs.rs]
 features = ["dox"]
diff --git a/gdkx11/Cargo.toml b/gdkx11/Cargo.toml
index f9b0ac310e14..938462c51d6f 100644
--- a/gdkx11/Cargo.toml
+++ b/gdkx11/Cargo.toml
@@ -12,6 +12,7 @@ repository = "https://github.com/gtk-rs/gtk3-rs"
 exclude = [
     "gir-files/*",
 ]
+include = ["../LICENSE"]
 edition = "2018"
 
 [lib]
diff --git a/gdkx11/sys/Cargo.toml b/gdkx11/sys/Cargo.toml
index 6e8bc1408fe1..9e03d6994797 100644
--- a/gdkx11/sys/Cargo.toml
+++ b/gdkx11/sys/Cargo.toml
@@ -8,6 +8,7 @@ repository = "https://github.com/gtk-rs/gtk3-rs"
 name = "gdkx11-sys"
 version = "0.15.0"
 build = "build.rs"
+include = ["../../LICENSE"]
 edition = "2018"
 [package.metadata.docs.rs]
 features = ["dox"]
diff --git a/gtk/Cargo.toml b/gtk/Cargo.toml
index 4cf86c46c406..b34fea467292 100644
--- a/gtk/Cargo.toml
+++ b/gtk/Cargo.toml
@@ -14,6 +14,7 @@ build = "build.rs"
 exclude = [
     "gir-files/*",
 ]
+include = ["../LICENSE"]
 edition = "2018"
 
 [lib]
diff --git a/gtk/sys/Cargo.toml b/gtk/sys/Cargo.toml
index 0e3f2fcd0674..d7e6e6bfbb2a 100644
--- a/gtk/sys/Cargo.toml
+++ b/gtk/sys/Cargo.toml
@@ -9,6 +9,7 @@ homepage = "http://gtk-rs.org/"
 keywords = ["gtk", "ffi", "gtk-rs", "gnome"]
 license = "MIT"
 repository = "https://github.com/gtk-rs/gtk3-rs"
+include = ["../../LICENSE"]
 edition = "2018"
 [package.metadata.docs.rs]
 features = ["dox"]
diff --git a/gtk3-macros/Cargo.toml b/gtk3-macros/Cargo.toml
index 21bfca65dd0b..cfe54cec78e8 100644
--- a/gtk3-macros/Cargo.toml
+++ b/gtk3-macros/Cargo.toml
@@ -13,6 +13,7 @@ repository = "https://github.com/gtk-rs/gtk3-rs"
 exclude = [
     "gir-files/*",
 ]
+include = ["../LICENSE"]
 
 [lib]
 proc-macro = true


Test patch: