Skip to content

Commit

Permalink
book: update swiftc-and-cargo to use new subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
integer-overflown committed May 11, 2024
1 parent 93c15bf commit 348ddb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions book/src/building/swiftc-and-cargo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ fn main() {
#!/bin/bash
set -e

# The swift-bridge CLI does not exist yet. Open an issue if you need to use
# this approach and I'll happily whip up the CLI.
swift-bridge -f src/lib.rs > generated
swift-bridge-cli parse-bridges <package name> src/lib.rs

swiftc -emit-library -static -module-name my_swift -import-objc-header bridging-header.h \
lib.swift ./generated/swift-and-rust/swift-and-rust.swift
Expand Down

0 comments on commit 348ddb4

Please sign in to comment.