license
Embedded license information from SPDX.
Use the licenses directly.
use License;
use Bsd3Clause;
let bsd3 = Bsd3Clause;
assert!;
assert_eq!;
Get the license by parsing the license id.
use License;
let apache2: & dyn License = "Apache-2.0".parse.unwrap;
assert_eq!;
License exceptions are also supported.
use Exception;
let gcc: & dyn Exception = "GCC-exception-3.1".parse.unwrap;
assert_eq!;
Serde is supported with the serde
feature.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.