From c0bb53b0dfa4f74cc29a4f3f76974d3a6ce601f5 Mon Sep 17 00:00:00 2001 From: Solo-steven Date: Sun, 10 Sep 2023 17:29:54 +0800 Subject: [PATCH] feat: add doc for activate LockOption --- crates/web-sys/src/features/gen_LockOptions.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/web-sys/src/features/gen_LockOptions.rs b/crates/web-sys/src/features/gen_LockOptions.rs index bcb8ed53998..626e232a057 100644 --- a/crates/web-sys/src/features/gen_LockOptions.rs +++ b/crates/web-sys/src/features/gen_LockOptions.rs @@ -9,6 +9,8 @@ extern "C" { #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LockOptions` dictionary."] #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LockOption`*"] + #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type LockOptions; @@ -17,6 +19,8 @@ extern "C" { impl LockOptions { #[doc = "Construct a new `LockOptions`."] #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LockOption`*"] + #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Self { @@ -28,6 +32,8 @@ impl LockOptions { #[cfg(feature = "LockMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LockOption`*"] + #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mode(&mut self, val: LockMode) -> &mut Self {