Skip to content

Commit a0bafe1

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 353151a commit a0bafe1

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Cargo.toml

Lines changed: 7 additions & 3 deletions
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,9 +31,9 @@ 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
"packed_simd" = { git = "https://github.com/programingjd/packed_simd.git", rev = "53efe013875b7f23ecc1edd840a20c4cbce3f302", default-features = false, features = ["into_bits"], optional = true }
3438

3539
[features]

c/Cargo.toml

Lines changed: 3 additions & 5 deletions
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)