diff --git a/Cargo.toml b/Cargo.toml index f840d91b..6c47281f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,7 @@ +[workspace] +members = [".", "c"] +default-members = [".", "c"] + [package] name = "brotli" version = "3.4.0" @@ -26,11 +30,11 @@ incremental = false [dependencies] "alloc-no-stdlib" = { version = "2.0" } -"alloc-stdlib" = { version = "~0.2", optional = true } -"brotli-decompressor" = { version = "~2.5", default-features = false } -"sha2" = { version = "~0.10", optional = true } +"alloc-stdlib" = { version = "0.2", optional = true } +"brotli-decompressor" = { version = "2.5", default-features = false } +"sha2" = { version = "0.10", optional = true } # Uncomment once this packed_simd -# "packed_simd_2" = {version="0.3", optional=true} +# "packed_simd_2" = { version = "0.3", optional = true } [features] default = ["std", "ffi-api"] @@ -43,4 +47,4 @@ seccomp = ["brotli-decompressor/seccomp"] std = ["alloc-stdlib", "brotli-decompressor/std"] validation = ["sha2"] vector_scratch_space = [] -# simd = ["packed_simd_2/into_bits"] +# simd = ["packed_simd_2", "packed_simd_2?/into_bits"] diff --git a/c/Cargo.toml b/c/Cargo.toml index f12655e2..3a4f96dd 100644 --- a/c/Cargo.toml +++ b/c/Cargo.toml @@ -16,18 +16,16 @@ autobins = false path = "src/lib.rs" crate-type = ["cdylib", "staticlib", "rlib"] -[profile.release] -lto = true - [dependencies] -"brotli" = { version = "~3.3", default-features = false, features = ["ffi-api"] } +"brotli" = { version = "3.4", default-features = false, features = ["ffi-api"], path = ".." } [features] default = ["std"] benchmark = ["brotli/benchmark"] disable-timer = ["brotli/disable-timer"] seccomp = ["brotli/seccomp"] -simd = ["brotli/simd"] +# Uncomment once brotli package supports simd feature again +# simd = ["brotli/simd"] std = ["brotli/std"] validation = ["brotli/validation"] vector_scratch_space = ["brotli/vector_scratch_space"]