chinedufn / swift-bridge

swift-bridge facilitates Rust and Swift interop.
https://chinedufn.github.io/swift-bridge
Apache License 2.0
842 stars 62 forks source link

Add support for #[derive(Debug, serde::Serialize, serde::Deserialize)] to SharedStruct #248

Open wooden-worm opened 10 months ago

wooden-worm commented 10 months ago

Expanding on https://github.com/chinedufn/swift-bridge/pull/198

Let me know if this is heading toward the right direction, I can add more tests later.

chinedufn commented 10 months ago

Looks like the right direction

wooden-worm commented 10 months ago

I added a few tests, let me know if I missed anything.

jmp-0x7C0 commented 8 months ago

@wooden-worm are you still working on this PR? I could really use this feature, and I'd be happy to help move this forward.

wooden-worm commented 8 months ago

I've added a few tests, not sure what else this needs in order to merge?

jmp-0x7C0 commented 8 months ago

@wooden-worm thanks for the quick reply.

@chinedufn are there any other required changes before this can be merged?

chinedufn commented 8 months ago

I'll take a look over the weekend.

extrawurst commented 6 months ago

I am in dire need to be able to have #[derive(Debug, Default, Clone)] on shared structs. also I am wondering how to make them vectorizable aka allow me to return a Vec<T> of them