Skip to content

Commit e8e082e

Browse files
committed
Go back to 0BSD license
The goal has not changed and is still to enable this library for the widest audience without restrictions. After reading many articles regarding licensing, 0BSD seems like a more precise way to achieve this goal. - 0BSD is far from being as popular as MIT. That is its only drawback. - The 0BSD license appears to have been recognized as an open-source license by major IT companies (no need to jump through legal hoops to use a 0BSD licensed library). - 0BSD is short, simple and clear. - 0BSD is unambiguous about attribution: attribution is not required.
1 parent f5960f1 commit e8e082e

File tree

8 files changed

+24
-31
lines changed

8 files changed

+24
-31
lines changed

Diff for: LICENSE

+11-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
MIT License
1+
BSD Zero Clause License
22

3-
Copyright (c) 2023 Stephane Raux
3+
Copyright (c) 2018 Stephane Raux
44

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:
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted.
117

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.
8+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14+
PERFORMANCE OF THIS SOFTWARE.

Diff for: enum-iterator-derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "1.3.1"
44
authors = ["Stephane Raux <[email protected]>"]
55
edition = "2021"
66
description = "Procedural macro to derive Sequence"
7-
license = "MIT"
7+
license = "0BSD"
88
homepage = "https://github.com/stephaneyfx/enum-iterator"
99
repository = "https://github.com/stephaneyfx/enum-iterator.git"
1010
documentation = "https://docs.rs/enum-iterator-derive"

Diff for: enum-iterator-derive/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# Overview
44
- [📦 crates.io](https://crates.io/crates/enum-iterator-derive)
55
- [📖 Documentation](https://docs.rs/enum-iterator-derive)
6-
- [MIT license](https://spdx.org/licenses/MIT.html)
6+
- [0BSD license](https://spdx.org/licenses/0BSD.html)
77

88
Procedural macro to derive `Sequence`.
99

1010
See crate [`enum-iterator`](https://docs.rs/enum-iterator) for details.
1111

1212
# Contribute
13-
All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html).
13+
All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html).
1414

1515
<!-- cargo-sync-readme end -->

Diff for: enum-iterator-derive/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license.
1+
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the 0BSD license.
22

33
//! # Overview
44
//! - [📦 crates.io](https://crates.io/crates/enum-iterator-derive)
55
//! - [📖 Documentation](https://docs.rs/enum-iterator-derive)
6-
//! - [⚖ MIT license](https://spdx.org/licenses/MIT.html)
6+
//! - [⚖ 0BSD license](https://spdx.org/licenses/0BSD.html)
77
//!
88
//! Procedural macro to derive `Sequence`.
99
//!
1010
//! See crate [`enum-iterator`](https://docs.rs/enum-iterator) for details.
1111
//!
1212
//! # Contribute
13-
//! All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html).
13+
//! All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html).
1414
1515
#![recursion_limit = "128"]
1616
#![deny(warnings)]

Diff for: enum-iterator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "2.0.1"
44
authors = ["Stephane Raux <[email protected]>"]
55
edition = "2021"
66
description = "Tools to iterate over all values of a type (e.g. all variants of an enumeration)"
7-
license = "MIT"
7+
license = "0BSD"
88
homepage = "https://github.com/stephaneyfx/enum-iterator"
99
repository = "https://github.com/stephaneyfx/enum-iterator.git"
1010
documentation = "https://docs.rs/enum-iterator"

Diff for: enum-iterator/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Overview
44
- [📦 crates.io](https://crates.io/crates/enum-iterator)
55
- [📖 Documentation](https://docs.rs/enum-iterator)
6-
- [MIT license](https://spdx.org/licenses/MIT.html)
6+
- [0BSD license](https://spdx.org/licenses/0BSD.html)
77

88
Tools to iterate over the values of a type.
99

@@ -58,6 +58,6 @@ This crate tracks stable Rust. Minor releases may require a newer Rust version.
5858
must not require a newer Rust version.
5959

6060
# Contribute
61-
All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html).
61+
All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html).
6262

6363
<!-- cargo-sync-readme end -->

Diff for: enum-iterator/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license.
1+
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the 0BSD license.
22

33
//! # Overview
44
//! - [📦 crates.io](https://crates.io/crates/enum-iterator)
55
//! - [📖 Documentation](https://docs.rs/enum-iterator)
6-
//! - [⚖ MIT license](https://spdx.org/licenses/MIT.html)
6+
//! - [⚖ 0BSD license](https://spdx.org/licenses/0BSD.html)
77
//!
88
//! Tools to iterate over the values of a type.
99
//!
@@ -58,7 +58,7 @@
5858
//! must not require a newer Rust version.
5959
//!
6060
//! # Contribute
61-
//! All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html).
61+
//! All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html).
6262
6363
#![deny(missing_docs)]
6464
#![deny(warnings)]

Diff for: enum-iterator/tests/derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license.
1+
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the 0BSD license.
22

33
use enum_iterator::{all, cardinality, reverse_all, Sequence};
44
use std::{convert::Infallible, iter::once};

0 commit comments

Comments
 (0)