cpp.rs |
This module generates the UniFFI C++ code that sits between the Rust scaffolding code and the
generated JS code. The main responsibility of the generated C++ code is to implement the
UniFFI WebIDL interface.
The general strategy is to take the generalized component interface and convert it into types
that can be easily rendered by the UniFFIScaffolding.cpp template -- an intermediate
representation of sorts.
In many cases this means converting a type from `uniffi_bindgen::interface` into another type
that represents the same concept, but is easier for the templates to render. In this case, the
new type name has `Cpp` appended to it ([FfiFunction] is converted to [FfiFunctionCpp]). |
17454 |
js.rs |
|
14372 |
mod.rs |
|
243 |
shared.rs |
|
1653 |