Translate ByteString in WebIDL to [u8] (#505)

In arguments take `&[u8]` and in return value return `Vec<u8>`. Should help fill
out a few more APIs on `Header` and `Response`!
This commit is contained in:
Alex Crichton
2018-07-18 17:59:24 -05:00
committed by GitHub
parent 32fa5724dd
commit 9b6804a01b
5 changed files with 46 additions and 6 deletions

View File

@ -79,7 +79,7 @@ fn compile_ast(mut ast: backend::ast::Program) -> String {
let mut defined = BTreeSet::from_iter(
vec![
"str", "char", "bool", "JsValue", "u8", "i8", "u16", "i16", "u32", "i32", "u64", "i64",
"usize", "isize", "f32", "f64", "Result",
"usize", "isize", "f32", "f64", "Result", "String", "Vec",
].into_iter()
.map(|id| proc_macro2::Ident::new(id, proc_macro2::Span::call_site())),
);