Provides embedded license information from SPDX.
rust
let apache2 = "Apache-2.0".parse::<&dyn License>().unwrap();
assert_eq!(apache2.name(), "Apache License 2.0");
License exceptions are also supported.
rust
let gcc = "GCC-exception-3.1".parse::<&dyn Exception>().unwrap();
assert_eq!(gcc.name(), "GCC Runtime Library exception 3.1");
Licensed under either of
at your option.
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.