Skip to content

Commit b0ac545

Browse files
authored
Rollup merge of rust-lang#82374 - clehner:licenses, r=joshtriplett
Add license metadata for std dependencies These five crates are in the dependency tree of `std` but lack license metadata: - `alloc` - `core` - `panic_abort` - `panic_unwind` - `unwind` Querying the dependency tree of `std` is a useful thing to be able to do, since these crates will typically be linked into Rust binaries. Tools show the license fields missing, as seen in rust-lang#67014 (comment). This PR adds the license field for the five crates, based on the license of the `std` package and this repo as a whole. I also added the `repository` and `descriptions` fields, since those seem useful. For `description`, I copied text from top-level comments for the respective modules - except for `unwind` which has none. I also note that rust-lang#73530 attempted to add license metadata for all crates in this repo, but was rejected because there was question about some of them. I hope that this smaller change, focusing only on the runtime dependencies, will be easier to review. cc `@Mark-Simulacrum` `@Lokathor`
2 parents fe230b1 + f45fe94 commit b0ac545

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

library/alloc/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
authors = ["The Rust Project Developers"]
33
name = "alloc"
44
version = "0.0.0"
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/rust-lang/rust.git"
7+
description = "The Rust core allocation and collections library"
58
autotests = false
69
autobenches = false
710
edition = "2018"

library/core/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
authors = ["The Rust Project Developers"]
33
name = "core"
44
version = "0.0.0"
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/rust-lang/rust.git"
7+
description = "The Rust Core Library"
58
autotests = false
69
autobenches = false
710
edition = "2018"

library/panic_abort/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
authors = ["The Rust Project Developers"]
33
name = "panic_abort"
44
version = "0.0.0"
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/rust-lang/rust.git"
7+
description = "Implementation of Rust panics via process aborts"
58
edition = "2018"
69

710
[lib]

library/panic_unwind/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
authors = ["The Rust Project Developers"]
33
name = "panic_unwind"
44
version = "0.0.0"
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/rust-lang/rust.git"
7+
description = "Implementation of Rust panics via stack unwinding"
58
edition = "2018"
69

710
[lib]

library/unwind/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
authors = ["The Rust Project Developers"]
33
name = "unwind"
44
version = "0.0.0"
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/rust-lang/rust.git"
57
edition = "2018"
68
include = [
79
'/libunwind/*',

0 commit comments

Comments
 (0)