gecko-dev/toolkit/components/uniffi-js
Ben Dean-Kawamura 84884bf991 Bug 1867639 - Running mach uniffi generate. r=markh,janerik
Differential Revision: https://phabricator.services.mozilla.com/D195155
2023-12-12 14:13:45 +00:00
..
js
OwnedRustBuffer.cpp Bug 1690111 - Use new TypedArray APIs for processing data. r=farre,media-playback-reviewers,padenot,chunmin,sfink 2023-09-20 09:42:02 +00:00
OwnedRustBuffer.h
README.md
ScaffoldingCall.h
ScaffoldingConverter.h Bug 1690111 - Use new TypedArray APIs for processing data. r=farre,media-playback-reviewers,padenot,chunmin,sfink 2023-09-20 09:42:02 +00:00
UniFFICallbacks.cpp
UniFFICallbacks.h
UniFFIFixtureScaffolding.cpp Bug 1867639 - Running mach uniffi generate. r=markh,janerik 2023-12-12 14:13:45 +00:00
UniFFIGeneratedScaffolding.cpp Bug 1867639 - Running mach uniffi generate. r=markh,janerik 2023-12-12 14:13:45 +00:00
UniFFIPointer.cpp Bug 1690111 - Use new TypedArray APIs for processing data. r=farre,media-playback-reviewers,padenot,chunmin,sfink 2023-09-20 09:42:02 +00:00
UniFFIPointer.h
UniFFIPointerType.h
UniFFIRust.h
UniFFIScaffolding.cpp
UniFFIScaffolding.h
moz.build

README.md

uniffi-js

This directory contains C++ helper code for the UniFFI Rust library (https://github.com/mozilla/uniffi-rs/).

  • UniFFIPointer.* and UniFFIPointerType.* implement the UniFFIPointer WebIDL class

  • UniFFI*Scaffolding.cpp implements the UniFFIScaffolding WebIDL 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-fixtures is set.
    • UniFFIScaffolding.cpp is a facade that wraps UniFFIFixtureScaffolding, and UniFFIGeneratedScaffolding if enabled, to implement the interface.
  • ScaffoldingConverter.h, ScaffoldingCall.h contain 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.h contains definitions for the C functions that UniFFI exports.