forked from mirrors/gecko-dev
Removed the `Tag` template parameter from `ScaffoldingConverter`. It was totally unused. Updated UniFFITypeError to update it's message as `addItemDescriptionPart` is called. 1897266 made the messages more correct in some cases, but we lost the field name that generated the type error in the process. This new code should work in all casse. Updating the message has some runtime cost, but we shouldn't be generating lots of UniFFITypeErrors in the first place. Differential Revision: https://phabricator.services.mozilla.com/D211928 |
||
|---|---|---|
| .. | ||
| js | ||
| moz.build | ||
| OwnedRustBuffer.cpp | ||
| OwnedRustBuffer.h | ||
| README.md | ||
| ScaffoldingCall.h | ||
| ScaffoldingConverter.h | ||
| UniFFICallbacks.cpp | ||
| UniFFICallbacks.h | ||
| UniFFIFixtureScaffolding.cpp | ||
| UniFFIGeneratedScaffolding.cpp | ||
| UniFFIPointer.cpp | ||
| UniFFIPointer.h | ||
| UniFFIPointerType.h | ||
| UniFFIRust.h | ||
| UniFFIScaffolding.cpp | ||
| UniFFIScaffolding.h | ||
uniffi-js
This directory contains C++ helper code for the UniFFI Rust library (https://github.com/mozilla/uniffi-rs/).
-
UniFFIPointer.*andUniFFIPointerType.*implement theUniFFIPointerWebIDL class -
UniFFI*Scaffolding.cppimplements theUniFFIScaffoldingWebIDL class.- UniFFIGeneratedScaffolding.cpp contains the generated code for all non-testing UDL files.
- UniFFIFixtureScaffolding.cpp contains generated code for test fixture UDL
files. It's only compiled if
--enable-uniffi-fixturesis set. - UniFFIScaffolding.cpp is a facade that wraps UniFFIFixtureScaffolding, and UniFFIGeneratedScaffolding if enabled, to implement the interface.
-
ScaffoldingConverter.h,ScaffoldingCall.hcontain generic code to make the scaffolding calls. In general, we try to keep the logic of the calls in these files and limit the generated code to routing call IDs to template classes defined here. -
OwnedRustBuffer.*implements a C++ class to help manager ownership of a RustBuffer. -
UniFFIRust.hcontains definitions for the C functions that UniFFI exports.