uniffi-rs
uniffi-rs copied to clipboard
a multi-language bindings generator for rust
Here's something I wanted to toy with given recent work on refactoring our code-generation templates, and the desire for each interface member to be able to render itself. The issue...
This is a fun little something I've been messing around with, partly just to learn more about Rust macros and `syn`, and partly to see if they could make a...
Consider the following test: ``` fn test_no_infinite_recursion_when_walking_types() { const UDL: &str = r#" namespace test{}; interface Testing { void tester(Testing foo); }; "#; let ci = ComponentInterface::from_webidl(UDL).unwrap(); assert!(! ci.type_contains_unsigned_types(&Type::Object("Testing".into()))); }...
Fixes #443 To do: * [ ] Docs on how to release this * [ ] Talk to ops to set the environment variables in our CI env
If an interface has changed, and one side of the bindings (eg gecko_js) has been regenerated, but the other (eg .rs) hasn't, linking fails by design, but in an impressively...
Currently, users of UniFFI need to have the `uniffi-bindgen` tool installed separately on their system in order to generate foreign-language bindings. Experience has shown us that this causes a number...
Some of the examples have code which is really better described as "test" code, and so tends to detract from the example itself - I'm thinking "Callbacks" in particular, and...
Via https://github.com/mozilla/uniffi-rs/pull/431#issuecomment-835360035 and @jhugman, a possible improvement might be: * lean into the fact that rondpoint really is more a "fixture" than an example. * acknowledge that for some strange...
In the early days of developing this tool, we had concrete plans to integrate UniFFI comoponents into Desktop Firefox for JS consumers, and we landed a prototype C++/WebIDL/JS bindings backend...
In https://github.com/mozilla/uniffi-rs/issues/987 we identified an issue that is causing build failures in the iOS sample app, and which would cause build failures for our application-services iOS build in a production...