Skip to content

Commit 50598d9

Browse files
committed
Publish with license field instead of license-file
Specifying a `license-file` field informs crates.io that this crate is under a non-standard license[1], and it publishes the package as such[2]. Specifying the license with the `license` field allows crates.io to expose the actual license information, which allows this project to be used in certain corporations with automatic license checking. See pyo3 as an example[3][4]. [1] https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields [2] https://crates.io/api/v1/crates/numpy/0.13.1 [3] https://crates.io/api/v1/crates/pyo3/0.13.2 [4] https://github.com/PyO3/pyo3/blob/v0.13.2/Cargo.toml#L12
1 parent bebf608 commit 50598d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ documentation = "https://pyo3.github.io/rust-numpy/numpy"
77
edition = "2018"
88
repository = "https://github.com/rust-numpy/rust-numpy"
99
keywords = ["numpy", "python", "binding"]
10-
license-file = "LICENSE"
10+
license = "BSD-2-Clause"
1111

1212
[dependencies]
1313
cfg-if = "0.1"

0 commit comments

Comments
 (0)