image-rs / image

Encoding and decoding images in Rust
Apache License 2.0
4.86k stars 597 forks source link

`rayon` is included in the dependency tree even when the `rayon` feature is disabled when `ravif` feature is enabled #2290

Open Shnatsel opened 1 month ago

Shnatsel commented 1 month ago

This happens in image 0.25.2.

To reproduce:

cargo new img-test
cd img-test
cargo add image --no-default-features --features=default-formats
cargo tree -i rayon

prints:

rayon v1.10.0
├── maybe-rayon v0.1.1
│   └── rav1e v0.7.1
│       └── ravif v0.11.8
│           └── image v0.25.2
│               └── img-test v0.1.0
└── ravif v0.11.8 (*)
kornelski commented 1 month ago

I've added a threading feature to ravif.