Crate swift_bridge_ir

Source
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§

CodegenConfig
Configuration for how we will generate our Swift code.
SwiftBridgeModule
Represents a type definition within an extern "Rust" module, as well as all of its methods.
SwiftBridgeModuleAttrs
The ... in #\[swift_bridge::bridge(...)\]

Enums§

SwiftBridgeModuleAttr
An attribute within a #\[swift_bridge::bridge(...)\]