swift-bridge icon indicating copy to clipboard operation
swift-bridge copied to clipboard

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

Open wooden-worm opened this issue 1 year ago • 7 comments

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.

wooden-worm avatar Jan 09 '24 20:01 wooden-worm

Looks like the right direction

chinedufn avatar Jan 10 '24 19:01 chinedufn

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

wooden-worm avatar Jan 12 '24 08:01 wooden-worm

@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.

jmp-0x7C0 avatar Mar 15 '24 21:03 jmp-0x7C0

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

wooden-worm avatar Mar 15 '24 22:03 wooden-worm

@wooden-worm thanks for the quick reply.

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

jmp-0x7C0 avatar Mar 15 '24 23:03 jmp-0x7C0

I'll take a look over the weekend.

chinedufn avatar Mar 16 '24 00:03 chinedufn

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

extrawurst avatar Apr 30 '24 16:04 extrawurst