Vendor dependencies
Let's see how I like this workflow.
This commit is contained in:
parent
34d1830413
commit
9c435dc440
7500 changed files with 1665121 additions and 99 deletions
32
vendor/wasm-bindgen-macro/ui-tests/unused-attributes.rs
vendored
Normal file
32
vendor/wasm-bindgen-macro/ui-tests/unused-attributes.rs
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#![deny(unused_variables)]
|
||||
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
struct A {}
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl A {
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn foo() {}
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub struct MyStruct {
|
||||
hello: String,
|
||||
}
|
||||
|
||||
#[wasm_bindgen(getter, typescript_custom_section)]
|
||||
pub const FOO: &'static str = "FOO";
|
||||
|
||||
#[wasm_bindgen(readonly)]
|
||||
pub fn bar() {}
|
||||
|
||||
#[wasm_bindgen(getter_with_clone, final)]
|
||||
impl MyStruct {
|
||||
#[wasm_bindgen(getter, typescript_type = "Thing[]")]
|
||||
pub fn hello(&self) -> String {
|
||||
self.hello.clone()
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue