license 1.0.2

Provides license information from SPDX.
Documentation

license

Travis Crates.io Docs

Provides license information from SPDX.

let apache2 = license::from_id("Apache-2.0").unwrap();
assert_eq!(apache2.name(), "Apache License 2.0");

The library also extends certain licenses with information about their limitations, conditions, and permission.

let mit = license::from_id_ext("MIT").unwrap();
let perm = mit.permissions();
assert!(perm.private_use() && perm.commercial_use());

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.