Skip to content
Snippets Groups Projects
Unverified Commit f1994c86 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

wasm-builder: Disable building when running on docs.rs (#1540)

This pull request changes the `wasm-builder` to skip building the wasm
files when the build process is running on docs.rs.
parent 61be78c6
No related merge requests found
Pipeline #389914 passed with stages
in 55 minutes and 12 seconds
......@@ -203,7 +203,10 @@ fn generate_crate_skip_build_env_name() -> String {
/// Checks if the build of the WASM binary should be skipped.
fn check_skip_build() -> bool {
env::var(crate::SKIP_BUILD_ENV).is_ok() ||
env::var(generate_crate_skip_build_env_name()).is_ok()
env::var(generate_crate_skip_build_env_name()).is_ok() ||
// If we are running in docs.rs, let's skip building.
// https://docs.rs/about/builds#detecting-docsrs
env::var("DOCS_RS").is_ok()
}
/// Provide a dummy WASM binary if there doesn't exist one.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment