-
Notifications
You must be signed in to change notification settings - Fork 63
/
Cargo.toml
45 lines (40 loc) · 1.34 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[package]
edition = "2021"
name = "bzip2"
version = "0.5.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["bzip", "encoding"]
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
Reader/Writer streams.
"""
categories = ["compression", "api-bindings"]
rust-version = "1.65.0" # MSRV
publish = true
[workspace]
[dependencies]
libc = "0.2"
bzip2-sys = { version = "0.1.11", path = "bzip2-sys", optional = true }
[dependencies.libbz2-rs-sys]
version = "0.1.1"
# Don't enable the stdio feature for better portability.
default-features = false
features = ["rust-allocator"]
optional = true
[dev-dependencies]
rand = "0.8"
partial-io = { version = "0.5.4", features = ["quickcheck1"] }
quickcheck = "1.0"
[features]
default = ["dep:bzip2-sys"]
# Use the pure rust `libbz2-rs-sys` instead of the C FFI bindings of `bzip2-sys`
# The rust bzip2 implementation is always statically linked.
libbz2-rs-sys = ["dep:libbz2-rs-sys"]
# Always build `libbz2` from C source, and statically link it.
# This flag is only meaningful when `bzip2-sys` is used,
# and has no effect when `libbz2-rs-sys` is used as the bzip2 implementation.
static = ["bzip2-sys?/static"]