Skip to content

Meaning of multiple licenses #2174

Closed
Closed
@SimonSapin

Description

@SimonSapin

http://doc.crates.io/manifest.html#package-metadata says:

# This is a string description of the license for this package. Currently
# crates.io will validate the license provided against a whitelist of known
# license identifiers from http://spdx.org/licenses/. Multiple licenses can
# be separated with a `/`
license = "..."

But what is the meaning of having multiple licenses?

MIT / Apache-2.0 is often use to express a "dual-license" like Rust itself. My understanding is that the user chooses which one to apply.

Now I’m publishing https://github.com/servo/rust-egl on crates.io. Some files have an Apache-2 license headers, others something that looks like MIT. So different files have different requirements. This is sort of "this license and this license", where Rust is "that one or that one".

Is there a way to express this difference in the license field of Cargo.toml? Should there be?

CC @larsbergstrom

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions