diff --git a/Cargo.toml b/Cargo.toml index 45473c90..d5efdc13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ edition = "2018" [package.metadata.docs.rs] features = ["serde-serialize"] -rustc-args = ["--cfg=web_sys_unstable_apis"] [lib] test = false diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2261d673..6ee46572 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -328,7 +328,7 @@ jobs: - script: cargo doc --no-deps --manifest-path crates/web-sys/Cargo.toml --all-features displayName: "Document web-sys" env: - RUSTFLAGS: --cfg=web_sys_unstable_apis + RUSTDOCFLAGS: --cfg=web_sys_unstable_apis - script: cargo doc --no-deps --manifest-path crates/futures/Cargo.toml displayName: "Document wasm-bindgen-futures" # Make a tarball even though a zip is uploaded, it looks like the tarball diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml index 75fc4fa0..fc1342a5 100644 --- a/crates/web-sys/Cargo.toml +++ b/crates/web-sys/Cargo.toml @@ -14,6 +14,7 @@ edition = "2018" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg=web_sys_unstable_apis"] [lib] doctest = false