Skip to content

Commit

Permalink
Don't document descriptor functions
Browse files Browse the repository at this point in the history
They aren't part of any public API, and are just an implementation detail of
wasm-bindgen.
  • Loading branch information
fitzgen committed Jun 18, 2018
1 parent 9ee1acb commit a702397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/backend/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ impl ToTokens for ast::StructField {
}

#[no_mangle]
#[doc(hidden)]
pub extern fn #desc() {
use wasm_bindgen::describe::*;
<#ty as WasmDescribe>::describe();
Expand Down Expand Up @@ -439,6 +440,7 @@ impl ToTokens for ast::Export {
// binary along with anything it references.
#[no_mangle]
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
#[doc(hidden)]
pub extern fn #descriptor_name() {
use wasm_bindgen::describe::*;
inform(FUNCTION);
Expand Down Expand Up @@ -732,6 +734,7 @@ impl<'a> ToTokens for DescribeImport<'a> {
(quote! {
#[no_mangle]
#[allow(non_snake_case)]
#[doc(hidden)]
pub extern fn #describe_name() {
use wasm_bindgen::describe::*;
inform(FUNCTION);
Expand Down

0 comments on commit a702397

Please sign in to comment.