1. Introduction
  2. 1. Building
    1. 1.1. Xcode + Cargo
    2. 1.2. swiftc + Cargo
    3. 1.3. Swift Packages
  3. 2. The Bridge Module
    1. 2.1. Functions
    2. 2.2. Opaque Types
    3. 2.3. Transparent Types
      1. 2.3.1. Transparent Structs
      2. 2.3.2. Transparent Enums
    4. 2.4. Generics
    5. 2.5. Conditional Compilation
    6. 2.6. Why a Bridge Module
  4. 3. Built In Types
    1. 3.1. String <---> String
    2. 3.2. &str <---> RustStr
    3. 3.3. Vec <---> RustVec
    4. 3.4. Option <---> Optional
    5. 3.5. Result<T, E> <---> RustResult<T, E>
    6. 3.6. Box<dyn FnOnce(A, B) -> C>
    7. 3.7. (A, B, C, ...) <---> (A, B, C, ...)
  5. 4. Safety
  6. 5. Contributing to swift-bridge
    1. 5.1. Internal Design
      1. 5.1.1. Code Generation
    2. 5.2. Adding support for a signature
    3. 5.3. Adding compile time errors

The swift-bridge Book

Contributing to swift-bridge