Skip to content

Commit f4b7854

Browse files
committed
Made rustdct an optional dependency
1 parent a73f715 commit f4b7854

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ homepage = "https://github.com/image-rs/imageproc"
1212
exclude = [".github/*", "examples/*", "tests/*"]
1313

1414
[features]
15-
default = ["rayon", "image/default","ab_glyph"]
15+
default = ["rayon", "image/default", "ab_glyph", "rustdct"]
1616
display-window = ["sdl2"]
1717
rayon = ["dep:rayon", "image/rayon"]
18-
ab_glyph = ["dep:ab_glyph"]
1918

2019
[dependencies]
2120
ab_glyph = { version = "0.2.23", default-features = false, features = ["std"], optional = true}
@@ -37,7 +36,7 @@ sdl2 = { version = "0.38.0", optional = true, default-features = false, features
3736
"bundled",
3837
] }
3938
katexit = { version = "0.1.4", optional = true, default-features = false }
40-
rustdct = "0.7.1"
39+
rustdct = { version = "0.7.1", optional = true }
4140

4241
[target.'cfg(target_arch = "wasm32")'.dependencies]
4342
getrandom = { version = "0.3.0", default-features = false, features = ["wasm_js"] }

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub mod gradients;
3737
pub mod haar;
3838
pub mod hog;
3939
pub mod hough;
40+
#[cfg(feature = "rustdct")]
4041
pub mod image_hash;
4142
pub mod integral_image;
4243
pub mod kernel;

0 commit comments

Comments
 (0)