diff --git a/LICENSE b/LICENSE index 174d627..639dbea 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,14 @@ -MIT License +BSD Zero Clause License -Copyright (c) 2023 Stephane Raux +Copyright (c) 2018 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: +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. -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. +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. diff --git a/enum-iterator-derive/Cargo.toml b/enum-iterator-derive/Cargo.toml index b6c9056..ac74726 100644 --- a/enum-iterator-derive/Cargo.toml +++ b/enum-iterator-derive/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "enum-iterator-derive" -version = "1.3.0" +version = "1.4.0" authors = ["Stephane Raux "] edition = "2021" description = "Procedural macro to derive Sequence" -license = "MIT" +license = "0BSD" homepage = "https://github.com/stephaneyfx/enum-iterator" repository = "https://github.com/stephaneyfx/enum-iterator.git" documentation = "https://docs.rs/enum-iterator-derive" diff --git a/enum-iterator-derive/LICENSE b/enum-iterator-derive/LICENSE new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/enum-iterator-derive/LICENSE @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/enum-iterator-derive/README.md b/enum-iterator-derive/README.md index 8d96b11..cae28f8 100644 --- a/enum-iterator-derive/README.md +++ b/enum-iterator-derive/README.md @@ -3,13 +3,13 @@ # Overview - [📦 crates.io](https://crates.io/crates/enum-iterator-derive) - [📖 Documentation](https://docs.rs/enum-iterator-derive) -- [⚖ MIT license](https://spdx.org/licenses/MIT.html) +- [⚖ 0BSD license](https://spdx.org/licenses/0BSD.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 [MIT license](https://spdx.org/licenses/MIT.html). +All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html). diff --git a/enum-iterator-derive/src/lib.rs b/enum-iterator-derive/src/lib.rs index 7baabeb..652c76a 100644 --- a/enum-iterator-derive/src/lib.rs +++ b/enum-iterator-derive/src/lib.rs @@ -1,16 +1,16 @@ -// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license. +// Copyright (c) 2018-2022 Stephane Raux. Distributed under the 0BSD license. //! # Overview //! - [📦 crates.io](https://crates.io/crates/enum-iterator-derive) //! - [📖 Documentation](https://docs.rs/enum-iterator-derive) -//! - [⚖ MIT license](https://spdx.org/licenses/MIT.html) +//! - [⚖ 0BSD license](https://spdx.org/licenses/0BSD.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 [MIT license](https://spdx.org/licenses/MIT.html). +//! All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html). #![recursion_limit = "128"] #![deny(warnings)] diff --git a/enum-iterator/Cargo.toml b/enum-iterator/Cargo.toml index 7c1f1ed..24257c1 100644 --- a/enum-iterator/Cargo.toml +++ b/enum-iterator/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "enum-iterator" -version = "2.0.0" +version = "2.1.0" authors = ["Stephane Raux "] edition = "2021" description = "Tools to iterate over all values of a type (e.g. all variants of an enumeration)" -license = "MIT" +license = "0BSD" homepage = "https://github.com/stephaneyfx/enum-iterator" repository = "https://github.com/stephaneyfx/enum-iterator.git" documentation = "https://docs.rs/enum-iterator" keywords = ["enum", "variants", "iterator", "enumerate", "cardinality"] [dependencies] -enum-iterator-derive = { path = "../enum-iterator-derive", version = "1.3.0" } +enum-iterator-derive = { path = "../enum-iterator-derive", version = "1.4.0" } diff --git a/enum-iterator/LICENSE b/enum-iterator/LICENSE new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/enum-iterator/LICENSE @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/enum-iterator/README.md b/enum-iterator/README.md index e2e5992..54b0c51 100644 --- a/enum-iterator/README.md +++ b/enum-iterator/README.md @@ -3,7 +3,7 @@ # Overview - [📦 crates.io](https://crates.io/crates/enum-iterator) - [📖 Documentation](https://docs.rs/enum-iterator) -- [⚖ MIT license](https://spdx.org/licenses/MIT.html) +- [⚖ 0BSD license](https://spdx.org/licenses/0BSD.html) Tools to iterate over the values of a type. @@ -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 [MIT license](https://spdx.org/licenses/MIT.html). +All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html). diff --git a/enum-iterator/src/lib.rs b/enum-iterator/src/lib.rs index a3b35ca..16d4726 100644 --- a/enum-iterator/src/lib.rs +++ b/enum-iterator/src/lib.rs @@ -1,9 +1,9 @@ -// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license. +// Copyright (c) 2018-2022 Stephane Raux. Distributed under the 0BSD license. //! # Overview //! - [📦 crates.io](https://crates.io/crates/enum-iterator) //! - [📖 Documentation](https://docs.rs/enum-iterator) -//! - [⚖ MIT license](https://spdx.org/licenses/MIT.html) +//! - [⚖ 0BSD license](https://spdx.org/licenses/0BSD.html) //! //! Tools to iterate over the values of a type. //! @@ -58,7 +58,7 @@ //! must not require a newer Rust version. //! //! # Contribute -//! All contributions shall be licensed under the [MIT license](https://spdx.org/licenses/MIT.html). +//! All contributions shall be licensed under the [0BSD license](https://spdx.org/licenses/0BSD.html). #![deny(missing_docs)] #![deny(warnings)] diff --git a/enum-iterator/tests/derive.rs b/enum-iterator/tests/derive.rs index 357257a..7b73c49 100644 --- a/enum-iterator/tests/derive.rs +++ b/enum-iterator/tests/derive.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2022 Stephane Raux. Distributed under the MIT license. +// Copyright (c) 2018-2022 Stephane Raux. Distributed under the 0BSD license. use enum_iterator::{all, cardinality, reverse_all, Sequence}; use std::{convert::Infallible, iter::once};