dimforge / dimforge/nalgebra

Add #[wasm_bindgen] on all types

Open
#456 3 comments 0 reactions 0 assignees View on GitHub
enhancement P-medium
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I am trying to use this excellent library in webasm using `#[wasm_bindgen]`. I have

```
#[wasm_bindgen]
#[derive(Debug, Copy, Clone)]
pub struct Pose {
pub t: i64,
pub pose: na::Isometry3,
}
```

and unfortunately get this error:

~~~
6 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::convert::FromWasmAbi` is not implemented for `na::Isometry>>`
~~~

As far as I understand I cannot implement this myself in my own crate, so it would be cool if I could expose types easily using wasm_bindgen.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.