diff --git a/Cargo.lock b/Cargo.lock index 8afcc496d..337064eee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2388,7 +2388,7 @@ dependencies = [ "phf_codegen 0.13.1", "postcard", "pretty_assertions", - "rayon", + "rayon-core", "regex", "reqwest 0.13.1", "sentry", diff --git a/Cargo.toml b/Cargo.toml index d350e8041..d9c76fc8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,6 @@ opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] } postcard = { version = "1.1.3", default-features = false, features = ["use-std"] } pretty_assertions = "1.4.0" rand = "0.9" -rayon = "1.6.1" regex = "1" reqwest = { version = "0.13", features = ["json", "gzip"] } sentry = { version = "0.46.0", features = ["panic", "tracing", "tower-http", "anyhow", "backtrace"] } diff --git a/crates/bin/docs_rs_watcher/Cargo.toml b/crates/bin/docs_rs_watcher/Cargo.toml index 81b2deebb..155827052 100644 --- a/crates/bin/docs_rs_watcher/Cargo.toml +++ b/crates/bin/docs_rs_watcher/Cargo.toml @@ -28,7 +28,7 @@ docs_rs_utils = { path = "../../lib/docs_rs_utils" } futures-util = { workspace = true } itertools = { workspace = true } opentelemetry = { workspace = true } -rayon = { workspace = true } +rayon = "1.6.1" sqlx = { workspace = true } tokio = { workspace = true } tracing = { workspace = true } diff --git a/crates/bin/docs_rs_web/Cargo.toml b/crates/bin/docs_rs_web/Cargo.toml index e981c504d..252ea76b2 100644 --- a/crates/bin/docs_rs_web/Cargo.toml +++ b/crates/bin/docs_rs_web/Cargo.toml @@ -53,7 +53,7 @@ num_cpus = "1.15.0" opentelemetry = { workspace = true } phf = "0.13.1" postcard = { workspace = true } -rayon = { workspace = true } +rayon-core = "1.13.0" regex = { workspace = true } reqwest = { workspace = true } sentry = { workspace = true } diff --git a/crates/bin/docs_rs_web/src/page/templates.rs b/crates/bin/docs_rs_web/src/page/templates.rs index 760861da9..daa539e58 100644 --- a/crates/bin/docs_rs_web/src/page/templates.rs +++ b/crates/bin/docs_rs_web/src/page/templates.rs @@ -38,7 +38,7 @@ pub(crate) struct TemplateData { /// This is better than using `tokio::spawn_blocking` because /// tokio will wait until all tasks are finished when shutting /// down. - rendering_threadpool: rayon::ThreadPool, + rendering_threadpool: rayon_core::ThreadPool, } impl TemplateData { @@ -46,7 +46,7 @@ impl TemplateData { trace!("Loading templates"); let data = Self { - rendering_threadpool: rayon::ThreadPoolBuilder::new() + rendering_threadpool: rayon_core::ThreadPoolBuilder::new() .num_threads(num_threads) .thread_name(move |idx| format!("docsrs-render {idx}")) .build()?,