diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index ce285b3a4..df648c144 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -12,6 +12,12 @@ license = "MIT OR Apache-2.0" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] +targets = [ + "x86_64-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "wasm32-unknown-unknown", +] [lib] diff --git a/wgpu-hal/Cargo.toml b/wgpu-hal/Cargo.toml index 718e00f9f..1b2749c12 100644 --- a/wgpu-hal/Cargo.toml +++ b/wgpu-hal/Cargo.toml @@ -23,6 +23,12 @@ rust-version = "1.60" # with the dx11 and dx12 features. features = ["vulkan", "gles", "renderdoc"] rustdoc-args = ["--cfg", "docsrs"] +targets = [ + "x86_64-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "wasm32-unknown-unknown", +] [lib] diff --git a/wgpu-types/Cargo.toml b/wgpu-types/Cargo.toml index f4959b684..55b8b0365 100644 --- a/wgpu-types/Cargo.toml +++ b/wgpu-types/Cargo.toml @@ -12,6 +12,12 @@ license = "MIT OR Apache-2.0" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] +targets = [ + "x86_64-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "wasm32-unknown-unknown", +] [lib] diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 2fe881d98..cf377227e 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -24,6 +24,12 @@ autotests = false [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] +targets = [ + "x86_64-unknown-linux-gnu", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "wasm32-unknown-unknown", +] [lib]