mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 00:11:23 +00:00
add char support (#206)
* add char support * add char test * remove __wbindgen_char fns * re-order travis script * update serve script * remove binds to unused char functions * add more wide character items to chars list * remove unused code * add char to readme * remove built file
This commit is contained in:
committed by
Alex Crichton
parent
17861a45ab
commit
4ddd93d75d
@ -32,6 +32,7 @@ tys! {
|
||||
ANYREF
|
||||
ENUM
|
||||
RUST_STRUCT
|
||||
CHAR
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
@ -57,6 +58,7 @@ pub enum Descriptor {
|
||||
Anyref,
|
||||
Enum,
|
||||
RustStruct(String),
|
||||
Char,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
@ -122,6 +124,7 @@ impl Descriptor {
|
||||
.collect();
|
||||
Descriptor::RustStruct(name)
|
||||
}
|
||||
CHAR => Descriptor::Char,
|
||||
other => panic!("unknown descriptor: {}", other),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user