-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
#164 updated glam & bevy_ecs types to match their serde
implementation
#165
Conversation
Would it be possible to generate like:
instead of
|
You could try If it's not clear with Serde transparent the first one will be |
Ok #[derive(Type)]
#[specta(remote = glam::Vec2, crate = crate, export = true)]
#[allow(dead_code)]
struct Vec2((f32, f32)); Result: export type Vec2 = [number, number] With #[derive(Type)]
#[specta(remote = glam::Vec2, crate = crate, export = true)]
#[allow(dead_code)]
struct Vec2([f32; 2]); Result: export type Vec2 = number[] so I'll change that quickly into a tuple :) |
As of 7039fba we now support |
…lementation-for-glam-and-bevy-ecs-types-baded-on-serialization-format
Thanks heaps for the PR! |
No description provided.