Skip to content

Commit 51b3561

Browse files
cartostwilkens
authored andcommitted
Relicense Bevy under the dual MIT or Apache-2.0 license (bevyengine#2509)
This relicenses Bevy under the dual MIT or Apache-2.0 license. For rationale, see bevyengine#2373. * Changes the LICENSE file to describe the dual license. Moved the MIT license to docs/LICENSE-MIT. Added the Apache-2.0 license to docs/LICENSE-APACHE. I opted for this approach over dumping both license files at the root (the more common approach) for a number of reasons: * Github links to the "first" license file (LICENSE-APACHE) in its license links (you can see this in the wgpu and rust-analyzer repos). People clicking these links might erroneously think that the apache license is the only option. Rust and Amethyst both use COPYRIGHT or COPYING files to solve this problem, but this creates more file noise (if you do everything at the root) and the naming feels way less intuitive. * People have a reflex to look for a LICENSE file. By providing a single license file at the root, we make it easy for them to understand our licensing approach. * I like keeping the root clean and noise free * There is precedent for putting the apache and mit license text in sub folders (amethyst) * Removed the `Copyright (c) 2020 Carter Anderson` copyright notice from the MIT license. I don't care about this attribution, it might make license compliance more difficult in some cases, and it didn't properly attribute other contributors. We shoudn't replace it with something like "Copyright (c) 2021 Bevy Contributors" because "Bevy Contributors" is not a legal entity. Instead, we just won't include the copyright line (which has precedent ... Rust also uses this approach). * Updates crates to use the new "MIT OR Apache-2.0" license value * Removes the old legion-transform license file from bevy_transform. bevy_transform has been its own, fully custom implementation for a long time and that license no longer applies. * Added a License section to the main readme * Updated our Bevy Plugin licensing guidelines. As a follow-up we should update the website to properly describe the new license. Closes bevyengine#2373
1 parent 9698819 commit 51b3561

File tree

38 files changed

+230
-58
lines changed

38 files changed

+230
-58
lines changed

.github/label-config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33

44
S-Needs-Triage:
55
- "**"
6-
7-
S-Pre-Relicense:
8-
- "**"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "A refreshingly simple data-driven game engine and app framework"
1111
exclude = ["assets/**/*", "tools/**/*", ".github/**/*", "crates/**/*"]
1212
homepage = "https://bevyengine.org"
1313
keywords = ["game", "engine", "gamedev", "graphics", "bevy"]
14-
license = "MIT"
14+
license = "MIT OR Apache-2.0"
1515
readme = "README.md"
1616
repository = "https://github.com/bevyengine/bevy"
1717

LICENSE

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
MIT License
1+
Bevy is dual-licensed under either
22

3-
Copyright (c) 2020 Carter Anderson
3+
* MIT License (docs/LICENSE-MIT or http://opensource.org/licenses/MIT)
4+
* Apache License, Version 2.0 (docs/LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
45

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
6+
at your option.

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# [![Bevy](assets/branding/bevy_logo_light_dark_and_dimmed.svg)](https://bevyengine.org)
22

33
[![Crates.io](https://img.shields.io/crates/v/bevy.svg)](https://crates.io/crates/bevy)
4-
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
4+
[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](./LICENSE)
55
[![Crates.io](https://img.shields.io/crates/d/bevy.svg)](https://crates.io/crates/bevy)
66
[![Rust](https://github.com/bevyengine/bevy/workflows/CI/badge.svg)](https://github.com/bevyengine/bevy/actions)
77
![iOS cron CI](https://github.com/bevyengine/bevy/workflows/iOS%20cron%20CI/badge.svg)
@@ -98,3 +98,16 @@ Plugins are very welcome to extend Bevy's features. [Guidelines][plugin_guidelin
9898
## Thanks and Alternatives
9999

100100
Additionally, we would like to thank the [Amethyst](https://github.com/amethyst/amethyst), [macroquad](https://github.com/not-fl3/macroquad), [coffee](https://github.com/hecrj/coffee), [ggez](https://github.com/ggez/ggez), [rg3d](https://github.com/mrDIMAS/rg3d), and [Piston](https://github.com/PistonDevelopers/piston) projects for providing solid examples of game engine development in Rust. If you are looking for a Rust game engine, it is worth considering all of your options. Each engine has different design goals, and some will likely resonate with you more than others.
101+
102+
## License
103+
104+
Bevy is free and open source! All code in this repository is dual-licensed under either:
105+
106+
* MIT License ([LICENSE-MIT](docs/LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))
107+
* Apache License, Version 2.0 ([LICENSE-APACHE](docs/LICENSE-APACHE) or [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0))
108+
109+
at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are [very good reasons](https://github.com/bevyengine/bevy/issues/2373) to include both.
110+
111+
Unless you explicitly state otherwise, any contribution intentionally submitted
112+
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
113+
additional terms or conditions.

crates/bevy_app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
description = "Provides core App functionality for Bevy Engine"
1010
homepage = "https://bevyengine.org"
1111
repository = "https://github.com/bevyengine/bevy"
12-
license = "MIT"
12+
license = "MIT OR Apache-2.0"
1313
keywords = ["bevy"]
1414

1515
[features]

crates/bevy_asset/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
description = "Provides asset functionality for Bevy Engine"
1010
homepage = "https://bevyengine.org"
1111
repository = "https://github.com/bevyengine/bevy"
12-
license = "MIT"
12+
license = "MIT OR Apache-2.0"
1313
keywords = ["bevy"]
1414

1515
[features]

crates/bevy_audio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
description = "Provides audio functionality for Bevy Engine"
1010
homepage = "https://bevyengine.org"
1111
repository = "https://github.com/bevyengine/bevy"
12-
license = "MIT"
12+
license = "MIT OR Apache-2.0"
1313
keywords = ["bevy"]
1414

1515
[dependencies]

crates/bevy_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
description = "Provides core functionality for Bevy Engine"
1010
homepage = "https://bevyengine.org"
1111
repository = "https://github.com/bevyengine/bevy"
12-
license = "MIT"
12+
license = "MIT OR Apache-2.0"
1313
keywords = ["bevy"]
1414

1515

crates/bevy_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
description = "Provides derive implementations for Bevy Engine"
1010
homepage = "https://bevyengine.org"
1111
repository = "https://github.com/bevyengine/bevy"
12-
license = "MIT"
12+
license = "MIT OR Apache-2.0"
1313
keywords = ["bevy"]
1414

1515
[lib]

crates/bevy_diagnostic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [
99
description = "Provides diagnostic functionality for Bevy Engine"
1010
homepage = "https://bevyengine.org"
1111
repository = "https://github.com/bevyengine/bevy"
12-
license = "MIT"
12+
license = "MIT OR Apache-2.0"
1313
keywords = ["bevy"]
1414

1515

0 commit comments

Comments
 (0)