jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
Other
0 stars 0 forks source link

Implement `uniffiDestroy` method for all types that contain objects #47

Open jhugman opened 1 month ago

jhugman commented 1 month ago

uniffiDestroy provides access to Rust drop methods of interface objects.

However, enums and records, lists and maps can call contain interface objects.

This issue is to add corresponding uniffiDestroy methods to recursively find all objects and call their uniffiDestroy methods.

These methods should not be generated unless the Record or Enum contains objects.