Skip to content

Commit 372cd26

Browse files
committed
Workspace with brotli and brotli-ffi crates
* make both packages into a single workspace * make `brotli-ffi` use latest `brotli` version * commented out `brotli-ffi` `simd` feature because it is no longer available
1 parent 9d2a732 commit 372cd26

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

Cargo.toml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[workspace]
2+
members = [".", "c"]
3+
default-members = [".", "c"]
4+
15
[package]
26
name = "brotli"
37
version = "3.4.0"
@@ -27,11 +31,11 @@ incremental = false
2731

2832
[dependencies]
2933
"alloc-no-stdlib" = { version = "2.0" }
30-
"alloc-stdlib" = { version = "~0.2", optional = true }
31-
"brotli-decompressor" = { version = "~2.5", default-features = false }
32-
"sha2" = { version = "~0.10", optional = true }
34+
"alloc-stdlib" = { version = "0.2", optional = true }
35+
"brotli-decompressor" = { version = "2.5", default-features = false }
36+
"sha2" = { version = "0.10", optional = true }
3337
# Uncomment once this packed_simd
34-
# "packed_simd_2" = {version="0.3", optional=true}
38+
# "packed_simd_2" = { version = "0.3", optional = true }
3539

3640
[features]
3741
default = ["std", "ffi-api"]
@@ -44,4 +48,4 @@ seccomp = ["brotli-decompressor/seccomp"]
4448
std = ["alloc-stdlib", "brotli-decompressor/std"]
4549
validation = ["sha2"]
4650
vector_scratch_space = []
47-
# simd = ["packed_simd_2/into_bits"]
51+
# simd = ["packed_simd_2", "packed_simd_2?/into_bits"]

c/Cargo.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,16 @@ autobins = false
1616
path = "src/lib.rs"
1717
crate-type = ["cdylib", "staticlib", "rlib"]
1818

19-
[profile.release]
20-
lto = true
21-
2219
[dependencies]
23-
"brotli" = { version = "~3.3", default-features = false, features = ["ffi-api"] }
20+
"brotli" = { version = "3.4", default-features = false, features = ["ffi-api"], path = ".." }
2421

2522
[features]
2623
default = ["std"]
2724
benchmark = ["brotli/benchmark"]
2825
disable-timer = ["brotli/disable-timer"]
2926
seccomp = ["brotli/seccomp"]
30-
simd = ["brotli/simd"]
27+
# Uncomment once brotli package supports simd feature again
28+
# simd = ["brotli/simd"]
3129
std = ["brotli/std"]
3230
validation = ["brotli/validation"]
3331
vector_scratch_space = ["brotli/vector_scratch_space"]

0 commit comments

Comments
 (0)