@@ -44,23 +44,22 @@ impl From<other_crate::Error> for Error {
44
44
<a id =" c-permissive " ></a >
45
45
## Crate and its dependencies have a permissive license (C-PERMISSIVE)
46
46
47
- The software produced by the Rust project is dual-licensed, under
48
- either the [ MIT] or [ Apache 2.0] licenses. Crates that simply need the
49
- maximum compatibility with the Rust ecosystem are recommended to do
50
- the same, in the manner described herein. Other options are described
51
- below.
47
+ The software produced by the Rust project is dual-licensed, under either the
48
+ [ MIT] or [ Apache 2.0] licenses. Crates that simply need the maximum
49
+ compatibility with the Rust ecosystem are recommended to do the same, in the
50
+ manner described herein. Other options are described below.
52
51
53
- These API guidelines do not provide a detailed explanation of Rust's
54
- license, but there is a small amount said in the [ Rust FAQ] . These
55
- guidelines are concerned with matters of interoperability with Rust,
56
- and are not comprehensive over licensing options.
52
+ These API guidelines do not provide a detailed explanation of Rust's license,
53
+ but there is a small amount said in the [ Rust FAQ] . These guidelines are
54
+ concerned with matters of interoperability with Rust, and are not comprehensive
55
+ over licensing options.
57
56
58
57
[ MIT ] : https://github.com/rust-lang/rust/blob/master/LICENSE-MIT
59
58
[ Apache 2.0 ] : https://github.com/rust-lang/rust/blob/master/LICENSE-APACHE
60
59
[ Rust FAQ ] : https://www.rust-lang.org/en-US/faq.html#why-a-dual-mit-asl2-license
61
60
62
- To apply the Rust license to your project, define the ` license ` field
63
- in your ` Cargo.toml ` as:
61
+ To apply the Rust license to your project, define the ` license ` field in your
62
+ ` Cargo.toml ` as:
64
63
65
64
``` toml
66
65
[package ]
@@ -91,18 +90,17 @@ for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
91
90
dual licensed as above, without any additional terms or conditions.
92
91
```
93
92
94
- Besides the dual MIT/Apache-2.0 license, another common licensing approach
95
- used by Rust crate authors is to apply a single permissive license such as
96
- MIT or BSD. This license scheme is also entirely compatible with Rust's,
97
- because it imposes the minimal restrictions of Rust's MIT license.
93
+ Besides the dual MIT/Apache-2.0 license, another common licensing approach used
94
+ by Rust crate authors is to apply a single permissive license such as MIT or
95
+ BSD. This license scheme is also entirely compatible with Rust's, because it
96
+ imposes the minimal restrictions of Rust's MIT license.
98
97
99
- Crates that desire perfect license compatibility with Rust are not
100
- recommended to choose only the Apache license. The Apache license,
101
- though it is a permissive license, imposes restrictions beyond the MIT
102
- and BSD licenses that can discourage or prevent their use in some
103
- scenarios, so Apache-only software cannot be used in some situations
104
- where most of the Rust runtime stack can.
98
+ Crates that desire perfect license compatibility with Rust are not recommended
99
+ to choose only the Apache license. The Apache license, though it is a permissive
100
+ license, imposes restrictions beyond the MIT and BSD licenses that can
101
+ discourage or prevent their use in some scenarios, so Apache-only software
102
+ cannot be used in some situations where most of the Rust runtime stack can.
105
103
106
104
The license of a crate's dependencies can affect the restrictions on
107
- distribution of the crate itself, so a permissively-licensed crate
108
- should generally only depend on permissively-licensed crates.
105
+ distribution of the crate itself, so a permissively-licensed crate should
106
+ generally only depend on permissively-licensed crates.
0 commit comments