- do not try java things when building for docs.rs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ndbioimage"
|
name = "ndbioimage"
|
||||||
version = "2025.1.1"
|
version = "2025.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Wim Pomp <w.pomp@nki.nl>"]
|
authors = ["Wim Pomp <w.pomp@nki.nl>"]
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
|
|||||||
4
build.rs
4
build.rs
@@ -7,12 +7,12 @@ fn main() -> anyhow::Result<()> {
|
|||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
|
|
||||||
if std::env::var("DOCS_RS").is_ok() {
|
if std::env::var("DOCS_RS").is_ok() {
|
||||||
|
Ok(())
|
||||||
|
} else {
|
||||||
Ok(retry(
|
Ok(retry(
|
||||||
Exponential::from_millis(1000).map(delay::jitter).take(4),
|
Exponential::from_millis(1000).map(delay::jitter).take(4),
|
||||||
deploy_java_artifacts,
|
deploy_java_artifacts,
|
||||||
)?)
|
)?)
|
||||||
} else {
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user