Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno_bindgen = "0.6.0": message: Type definition not found for f32 identifier #94

Closed
usrtax opened this issue Sep 12, 2022 · 4 comments · Fixed by #97
Closed

deno_bindgen = "0.6.0": message: Type definition not found for f32 identifier #94

usrtax opened this issue Sep 12, 2022 · 4 comments · Fixed by #97

Comments

@usrtax
Copy link
Contributor

usrtax commented Sep 12, 2022

image

error: custom attribute panicked
--> src/lib.rs:5:1
|
5 | #[deno_bindgen]
| ^^^^^^^^^^^^^^^
|
= help: message: Type definition not found for f32 identifier

@skanehira
Copy link
Contributor

Seems like f32 missing.
I think we should add.

match ident.as_str() {
"i8" => Type::I8,
"u8" => Type::U8,
"i16" => Type::I16,
"u16" => Type::U16,
"i32" => Type::I32,
"u32" => Type::U32,
"i64" => Type::I64,
"u64" => Type::U64,
"usize" => Type::Usize,
"isize" => Type::Isize,
_ => {

@skanehira
Copy link
Contributor

I'll fix this

@farshed
Copy link

farshed commented Jan 27, 2023

Hi, any idea when the next release will be? Could really use the floating point support

@bartlomieju
Copy link
Member

@littledivy could you cut a release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants