- do not try java things when building for docs.rs
This commit is contained in:
12
build.rs
12
build.rs
@@ -6,10 +6,14 @@ use retry::{delay, delay::Exponential, retry};
|
||||
fn main() -> anyhow::Result<()> {
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
|
||||
Ok(retry(
|
||||
Exponential::from_millis(1000).map(delay::jitter).take(4),
|
||||
deploy_java_artifacts,
|
||||
)?)
|
||||
if std::env::var("DOCS_RS").is_ok() {
|
||||
Ok(retry(
|
||||
Exponential::from_millis(1000).map(delay::jitter).take(4),
|
||||
deploy_java_artifacts,
|
||||
)?)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn deploy_java_artifacts() -> Result<(), J4RsError> {
|
||||
|
||||
Reference in New Issue
Block a user