jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
https://jhugman.github.io/uniffi-bindgen-react-native/
Other
52 stars 6 forks source link

Changed __ prefixed private fields to symbols #95

Closed jhugman closed 2 months ago

jhugman commented 2 months ago

According to The Big O of Code Reviews, this is a O(n) change.

This supersedes #94 to hide properties that are only used internally within the generated code.

It introduces a symbols.ts file and replaces all references to __uniffiTypeName, __variant, __rustPointer and __rustArcPtr.

The private accessors have also been removed.

The tests all continue to work, and the properties do not show up in the autocomplete/content assist of VS Code.