From 67c3a09fae8165d75daef3447999bb4c285e10bb Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 22 Sep 2024 12:30:04 -0400 Subject: [PATCH] Adjust license to reflect a MIT-only source, and add a MIT license file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since `src/context.rs` appears to be derived from https://github.com/google/brotli/blob/v1.1.0/c/common/context.c (possibly at a different version), and carries only MIT terms, it’s not possible for the crate to be `BSD-3-Clause OR MIT` overall. The new `LICENSE.MIT` file is taken from https://github.com/google/brotli/raw/refs/tags/v1.1.0/LICENSE since that appears to be the correct license text for `context.rs`. Fixes #9. Signed-off-by: Benjamin A. Beasley --- Cargo.toml | 2 +- LICENSE => LICENSE.BSD-3-Clause | 0 LICENSE.MIT | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) rename LICENSE => LICENSE.BSD-3-Clause (100%) create mode 100644 LICENSE.MIT diff --git a/Cargo.toml b/Cargo.toml index 1a2fd01..966fbee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "4.0.1" authors = ["Daniel Reiter Horn ", "The Brotli Authors"] description = "A brotli decompressor that with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream interface. Disable this with --features=no-stdlib. Alternatively, --features=unsafe turns off array bounds checks and memory initialization but provides a safe interface for the caller. Without adding the --features=unsafe argument, all included code is safe. For compression in addition to this library, download https://github.com/dropbox/rust-brotli " -license = "BSD-3-Clause/MIT" +license = "BSD-3-Clause AND MIT" documentation = "https://github.com/dropbox/rust-brotli-decompressor/blob/master/README.md" homepage = "https://github.com/dropbox/rust-brotli-decompressor" repository = "https://github.com/dropbox/rust-brotli-decompressor" diff --git a/LICENSE b/LICENSE.BSD-3-Clause similarity index 100% rename from LICENSE rename to LICENSE.BSD-3-Clause diff --git a/LICENSE.MIT b/LICENSE.MIT new file mode 100644 index 0000000..33b7cdd --- /dev/null +++ b/LICENSE.MIT @@ -0,0 +1,19 @@ +Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors. + +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.