mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 14:12:13 +00:00
Don't document descriptor functions
They aren't part of any public API, and are just an implementation detail of wasm-bindgen.
This commit is contained in:
parent
161fce9d50
commit
d9cac3bd90
@ -266,6 +266,7 @@ impl ToTokens for ast::StructField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
#[doc(hidden)]
|
||||||
pub extern fn #desc() {
|
pub extern fn #desc() {
|
||||||
use wasm_bindgen::describe::*;
|
use wasm_bindgen::describe::*;
|
||||||
<#ty as WasmDescribe>::describe();
|
<#ty as WasmDescribe>::describe();
|
||||||
@ -445,6 +446,7 @@ impl ToTokens for ast::Export {
|
|||||||
// binary along with anything it references.
|
// binary along with anything it references.
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
|
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
|
||||||
|
#[doc(hidden)]
|
||||||
pub extern fn #descriptor_name() {
|
pub extern fn #descriptor_name() {
|
||||||
use wasm_bindgen::describe::*;
|
use wasm_bindgen::describe::*;
|
||||||
inform(FUNCTION);
|
inform(FUNCTION);
|
||||||
@ -726,6 +728,7 @@ impl<'a> ToTokens for DescribeImport<'a> {
|
|||||||
(quote! {
|
(quote! {
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
|
#[doc(hidden)]
|
||||||
pub extern fn #describe_name() {
|
pub extern fn #describe_name() {
|
||||||
use wasm_bindgen::describe::*;
|
use wasm_bindgen::describe::*;
|
||||||
inform(FUNCTION);
|
inform(FUNCTION);
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user