Skip to content

Commit 787d340

Browse files
committed
Update licensing to MIT AND (MIT OR Apache-2.0)
Currently both Cargo.toml and the license files indicate that this library may be used under either MIT or Apache-2.0. However, this is not accurate; since portions of this library were derived from musl libc, which is available under the MIT license, this terms of use for this library must also include use under the MIT license. That is, it is not correct that this library may be used under only the Apache-2.0 license. Update the SPDX license identifier to `MIT OR (MIT AND Apache-2.0)` to indicate that use must include the MIT license, but to clarify that contributions are made under `MIT OR Apache-2.0`. This is compatible with the current state of this repository since it has always contained both license files, and the `Cargo.toml` license field has indicated `MIT OR Apache-2.0` since it was added. In accordance with the above, replace the two license files with a combined LICENSE.txt that makes these terms clear and gives attribution to works from which this library is derived. Link: https://rust-lang.zulipchat.com/#narrow/channel/335408-foundation/topic/Request.20for.20legal.20team.20input.20on.20crate.20licensing
1 parent e5aa09c commit 787d340

File tree

4 files changed

+237
-227
lines changed

4 files changed

+237
-227
lines changed

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ categories = ["no-std"]
44
description = "libm in pure Rust"
55
documentation = "https://docs.rs/libm"
66
keywords = ["libm", "math"]
7-
license = "MIT OR Apache-2.0"
7+
license = "MIT AND (MIT OR Apache-2.0)"
88
name = "libm"
99
readme = "README.md"
1010
repository = "https://github.com/rust-lang/libm"

Diff for: LICENSE-APACHE

-201
This file was deleted.

Diff for: LICENSE-MIT

-25
This file was deleted.

0 commit comments

Comments
 (0)