Build for WASM on docs.rs (#3462)

This commit is contained in:
daxpedda 2023-02-09 21:38:40 +01:00 committed by Connor Fitzgerald
parent 206904eab4
commit 9c9a24928e
4 changed files with 24 additions and 0 deletions

View File

@ -12,6 +12,12 @@ license = "MIT OR Apache-2.0"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"wasm32-unknown-unknown",
]
[lib] [lib]

View File

@ -23,6 +23,12 @@ rust-version = "1.60"
# with the dx11 and dx12 features. # with the dx11 and dx12 features.
features = ["vulkan", "gles", "renderdoc"] features = ["vulkan", "gles", "renderdoc"]
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"wasm32-unknown-unknown",
]
[lib] [lib]

View File

@ -12,6 +12,12 @@ license = "MIT OR Apache-2.0"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"wasm32-unknown-unknown",
]
[lib] [lib]

View File

@ -24,6 +24,12 @@ autotests = false
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"wasm32-unknown-unknown",
]
[lib] [lib]