Expand description
An intermediate representation of the FFI layer.
Things annotated with the #[swift_bridge::bridge]
attribute get parsed into this IR.
This IR is then used to generate the C header files, Objective-C bridging headers, Swift code, and Rust code needed to power Rust + Swift interop.
Structs§
- Codegen
Config - Configuration for how we will generate our Swift code.
- Swift
Bridge Module - Represents a type definition within an
extern "Rust"
module, as well as all of its methods. - Swift
Bridge Module Attrs - The
...
in#\[swift_bridge::bridge(...)\]
Enums§
- Swift
Bridge Module Attr - An attribute within a
#\[swift_bridge::bridge(...)\]