Skip to content

Commit

Permalink
Relicense to MIT
Browse files Browse the repository at this point in the history
The goal is to enable this library for the widest audience without
restrictions.

- The MIT license is much more popular and immediately recognized.
- The MIT license is more likely to be already allowed by company
  licensing departments.
- The drawback of the MIT license is that it is ambiguous regarding
  attribution requirements for derived work in binary form, which the
  switch to the 0BSD license was meant to waive entirely.
  • Loading branch information
stephaneyfx committed Dec 24, 2023
1 parent 9d472a1 commit 5921f6e
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 25 deletions.
33 changes: 21 additions & 12 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
Copyright (C) 2018-2022 Stephane Raux

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
MIT License

Copyright (c) 2023 Stephane Raux

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion enum-iterator-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.2.1"
authors = ["Stephane Raux <stephaneyfx@gmail.com>"]
edition = "2021"
description = "Procedural macro to derive Sequence"
license = "0BSD"
license = "MIT"
homepage = "https://github.com/stephaneyfx/enum-iterator"
repository = "https://github.com/stephaneyfx/enum-iterator.git"
documentation = "https://docs.rs/enum-iterator-derive"
Expand Down
4 changes: 2 additions & 2 deletions enum-iterator-derive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Overview
- [📦 crates.io](https://crates.io/crates/enum-iterator-derive)
- [📖 Documentation](https://docs.rs/enum-iterator-derive)
- [0BSD license](https://spdx.org/licenses/0BSD.html)
- [MIT license](https://spdx.org/licenses/MIT.html)

Procedural macro to derive `Sequence`.

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

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

<!-- cargo-sync-readme end -->
6 changes: 3 additions & 3 deletions enum-iterator-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright (C) 2018-2022 Stephane Raux. Distributed under the 0BSD license.
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license.

//! # Overview
//! - [📦 crates.io](https://crates.io/crates/enum-iterator-derive)
//! - [📖 Documentation](https://docs.rs/enum-iterator-derive)
//! - [⚖ 0BSD license](https://spdx.org/licenses/0BSD.html)
//! - [⚖ MIT license](https://spdx.org/licenses/MIT.html)
//!
//! Procedural macro to derive `Sequence`.
//!
//! See crate [`enum-iterator`](https://docs.rs/enum-iterator) for details.
//!
//! # Contribute
//! All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html).
//! All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html).

#![recursion_limit = "128"]
#![deny(warnings)]
Expand Down
2 changes: 1 addition & 1 deletion enum-iterator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.4.1"
authors = ["Stephane Raux <stephaneyfx@gmail.com>"]
edition = "2021"
description = "Tools to iterate over all values of a type (e.g. all variants of an enumeration)"
license = "0BSD"
license = "MIT"
homepage = "https://github.com/stephaneyfx/enum-iterator"
repository = "https://github.com/stephaneyfx/enum-iterator.git"
documentation = "https://docs.rs/enum-iterator"
Expand Down
4 changes: 2 additions & 2 deletions enum-iterator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Overview
- [📦 crates.io](https://crates.io/crates/enum-iterator)
- [📖 Documentation](https://docs.rs/enum-iterator)
- [0BSD license](https://spdx.org/licenses/0BSD.html)
- [MIT license](https://spdx.org/licenses/MIT.html)

Tools to iterate over the values of a type.

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

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

<!-- cargo-sync-readme end -->
6 changes: 3 additions & 3 deletions enum-iterator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (C) 2018-2022 Stephane Raux. Distributed under the 0BSD license.
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license.

//! # Overview
//! - [📦 crates.io](https://crates.io/crates/enum-iterator)
//! - [📖 Documentation](https://docs.rs/enum-iterator)
//! - [⚖ 0BSD license](https://spdx.org/licenses/0BSD.html)
//! - [⚖ MIT license](https://spdx.org/licenses/MIT.html)
//!
//! Tools to iterate over the values of a type.
//!
Expand Down Expand Up @@ -58,7 +58,7 @@
//! must not require a newer Rust version.
//!
//! # Contribute
//! All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html).
//! All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html).

#![deny(missing_docs)]
#![deny(warnings)]
Expand Down
2 changes: 1 addition & 1 deletion enum-iterator/tests/derive.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2018-2022 Stephane Raux. Distributed under the 0BSD license.
// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license.

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

0 comments on commit 5921f6e

Please sign in to comment.