Raw-rs: run tests in parallel (#1968)

* Run raw-rs tests in parallel

* cargo fmt

* Fix clippy warnings

* Use Fast CompressionType to speed up the tests

* Fix benches

* Use cfg_attr instead of cfg.

---------

Co-authored-by: hypercube <0hypercube@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Elbert Ronnie
2024-09-20 11:09:58 +00:00
committed by GitHub
co-authored by hypercube Keavon Chambers
parent e352c7fa71
commit d68f91ccca
4 changed files with 67 additions and 38 deletions
+2 -1
View File
@@ -13,7 +13,7 @@ repository = "https://github.com/GraphiteEditor/Graphite/tree/master/libraries/r
documentation = "https://docs.rs/raw-rs"
[features]
raw-rs-tests = ["dep:image", "dep:libraw-rs", "dep:reqwest"]
raw-rs-tests = ["dep:image", "dep:libraw-rs", "dep:reqwest", "dep:rayon"]
[dependencies]
# Local dependencies
@@ -33,3 +33,4 @@ reqwest = { workspace = true, optional = true }
# Optional dependencies (should be dev dependencies, but Cargo currently doesn't allow optional dev dependencies)
libraw-rs = { version = "0.0.4", optional = true }
rayon = { version = "1.10.0", optional = true }