Skip to content

Commit

Permalink
Exclude benchmarks from builds (#179)
Browse files Browse the repository at this point in the history
* Add missing gated feature (brotli)
* Exclude benchmarks from builds
  • Loading branch information
milesgranger authored Sep 16, 2024
1 parent 7870a64 commit 6068e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
license = "MIT"
description = "Thin Python bindings to de/compression algorithms in Rust"
readme = "README.md"
exclude = ["benchmarks/", "benchmark-requirements.txt"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ mod cramjam {
#[pymodule_export]
use crate::lz4::lz4;

#[cfg(any(feature = "brotli"))]
#[pymodule_export]
use crate::brotli::brotli;

Expand Down

0 comments on commit 6068e8b

Please sign in to comment.