Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Dec 4, 2024
1 parent 1636baf commit e6e8f11
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 29 deletions.
24 changes: 13 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 27 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,35 @@ members = [
exclude = [
"libbz2-rs-sys-cdylib",
]
package.edition = "2021"
resolver = "2"


[package]
name = "c2rust_out"
authors = ["C2Rust"]
version = "0.0.0"
publish = false
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "bzip2-1.0.6"
repository = "https://github.com/trifectatechfoundation/libbzip2-rs"
homepage = "https://github.com/trifectatechfoundation/libbzip2-rs"
readme = "./README.md"
description = "a drop-in compatible rust bzip2 implementation"
publish = true
rust-version = "1.82" # MSRV

[workspace.dependencies]
libc = "0.2"
libbz2-rs-sys = { path = "libbz2-rs-sys/", default-features = false }

[package]
name = "libbzip2-rs"
readme.workspace = true
description.workspace = true
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
publish.workspace = true
rust-version.workspace = true

[[bin]]
name = "bzip2"
path = "bzip2.rs"
Expand All @@ -25,14 +43,9 @@ path = "bzip2.rs"
name = "bzip2recover"
path = "bzip2recover.rs"

[workspace.dependencies]
libc = "0.2"
libbz2-rs-sys = { path = "libbz2-rs-sys/", default-features = false }


[dependencies]
libc = "0.2"
libbz2-rs-sys = { path = "libbz2-rs-sys/" }
libc.workspace = true
libbz2-rs-sys = { workspace = true, features = ["stdio"] }

[dev-dependencies]
tempfile = "3.13.0"
Expand Down
7 changes: 3 additions & 4 deletions libbz2-rs-sys-cdylib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[package]
name = "libbz2-rs-sys-cdylib"
version = "0.0.0"
edition = "2021"
readme = "README.md"
license = "bzip2-1.0.6"
repository = "https://github.com/trifectatechfoundation/libbzip2-rs"
homepage = "https://github.com/trifectatechfoundation/libbzip2-rs"
readme = "./README.md"
description = "a drop-in compatible libbz2 cdylib"
publish = true
description = "A memory-safe bzip2 implementation written in rust"
rust-version = "1.82" # MSRV

[lib]
Expand All @@ -22,7 +21,7 @@ custom-prefix = ["libbz2-rs-sys/custom-prefix"] # use the LIBBZ2_RS_SYS_PREFIX t
capi = []

[dependencies]
libbz2-rs-sys = { version = "0.0.0", path = "../libbz2-rs-sys", default-features = false, features = ["c-allocator"] }
libbz2-rs-sys = { version = "0.1.0", path = "../libbz2-rs-sys", default-features = false, features = ["c-allocator"] }
libc = "0.2"

[package.metadata.capi.library]
Expand Down
42 changes: 42 additions & 0 deletions libbz2-rs-sys-cdylib/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

--------------------------------------------------------------------------

This program, "bzip2", the associated library "libbzip2", and all
documentation, are copyright (C) 1996-2010 Julian R Seward. All
rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product, an acknowledgment in the product
documentation would be appreciated but is not required.

3. Altered source versions must be plainly marked as such, and must
not be misrepresented as being the original software.

4. The name of the author may not be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Julian Seward, [email protected]
bzip2/libbzip2 version 1.1.0 of 6 September 2010

--------------------------------------------------------------------------
7 changes: 7 additions & 0 deletions libbz2-rs-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[package]
name = "libbz2-rs-sys"
readme = "README.md"
description.workspace = true
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
publish.workspace = true
rust-version.workspace = true

[features]
default = ["std", "stdio"]
Expand Down
1 change: 1 addition & 0 deletions libbz2-rs-sys/LICENSE
4 changes: 4 additions & 0 deletions test-libbz2-rs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ edition.workspace = true
bzip2-sys = { version = "0.1.11", features = ["static"] }
libbz2-rs-sys = { workspace = true, default-features = true, features = ["testing-prefix"] }
libc.workspace = true

[dev-dependencies]
tempfile = "3.13.0"
crc32fast = "=1.4.2"

0 comments on commit e6e8f11

Please sign in to comment.