From bdb6e22d28b4109bbbfd36c2729437add59a9e5e Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Wed, 11 Dec 2024 10:21:28 +0100 Subject: [PATCH] prepare release 0.5.0 also includes: Update LICENSE-MIT Update copyright line for clarity: - Alex has been making modifications since 2014 - presumably no (c)-transfer has been arranged so copyright also belongs to the other contributors to this repo. - Trifecta has also made some modifications, but these are relatively small and so I see no need to add a separate "Copyright (c) 2024 Trifecta Tech Foundation" line right now. remove authors field from cargo.toml use of this field is discouraged at this point https://rust-lang.github.io/rfcs/3052-optional-authors-field.html update license syntax Co-authored-by: Marc R. Schoolderman --- .gitignore | 1 + Cargo.toml | 10 +++++----- LICENSE-MIT | 2 +- README.md | 12 +++++++++++- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a9d37c56..eb20bc6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ target Cargo.lock +.cargo/ diff --git a/Cargo.toml b/Cargo.toml index 0ae4af75..8b7fd4df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,12 @@ [package] edition = "2021" name = "bzip2" -version = "0.4.4" -authors = ["Alex Crichton "] -license = "MIT/Apache-2.0" +version = "0.5.0" +license = "MIT OR Apache-2.0" readme = "README.md" keywords = ["bzip", "encoding"] -repository = "https://github.com/alexcrichton/bzip2-rs" -homepage = "https://github.com/alexcrichton/bzip2-rs" +repository = "https://github.com/trifectatechfoundation/bzip2-rs" +homepage = "https://github.com/trifectatechfoundation/bzip2-rs" documentation = "https://docs.rs/bzip2" description = """ Bindings to libbzip2 for bzip2 compression and decompression exposed as @@ -15,6 +14,7 @@ Reader/Writer streams. """ categories = ["compression", "api-bindings"] rust-version = "1.65.0" # MSRV +publish = true [workspace] diff --git a/LICENSE-MIT b/LICENSE-MIT index 39e0ed66..6961724a 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,4 +1,4 @@ -Copyright (c) 2014 Alex Crichton +Copyright (c) 2014-2024 Alex Crichton and Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated diff --git a/README.md b/README.md index f383784b..90ec1333 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,19 @@ By default, `bzip2-rs` attempts to use the system `libbz2`. When `libbz2` is not is built from source. A from source build requires a functional C toolchain for your target, and may not work for all targets (in particular webassembly). +*`libbz2-rs-sys`* + +Since version 0.5.0, this crate also supports using [libbz2-rs-sys](https://crates.io/crates/libbz2-rs-sys), +a drop-in compatible rust implementation of `libbz2`. With this feature enabled, cross-compilation should work +like any other rust code, and no C toolchain is needed to compile this crate or its dependencies. + +```sh +bzip2 = { version = "0.5.0", default-features = false, features = ["libbz2-rs-sys"] } +``` + *`static`* -Always build `libbz2` from source, and statically link it. +Always build `libbz2` from source, and statically link it. When `libbz2-rs-sys` is enabled, static mode is always used. ## License