Skip to content

Commit c2c2a3a

Browse files
authored
Add #[doc(hidden)] to __WIT_BINDGEN_COMPONENT_TYPE. (#503)
Add `#[doc(hidden)]` to `__WIT_BINDGEN_COMPONENT_TYPE` so that it doesn't show up in rustdo documentation for the generated bindings.
1 parent 9ad1226 commit c2c2a3a

File tree

1 file changed

+1
-0
lines changed
  • crates/gen-guest-rust/src

1 file changed

+1
-0
lines changed

crates/gen-guest-rust/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ impl WorldGenerator for RustWasm {
255255
let component_type =
256256
wit_component::metadata::encode(resolve, world, wit_component::StringEncoding::UTF8)
257257
.unwrap();
258+
self.src.push_str("#[doc(hidden)]");
258259
self.src.push_str(&format!(
259260
"pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; {}] = ",
260261
component_type.len()

0 commit comments

Comments
 (0)