From 348ddb419b2d12e882071067a423333e9f1168f5 Mon Sep 17 00:00:00 2001 From: Maksym Khomenko Date: Sun, 12 May 2024 01:02:49 +0300 Subject: [PATCH] book: update swiftc-and-cargo to use new subcommand --- book/src/building/swiftc-and-cargo/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/book/src/building/swiftc-and-cargo/README.md b/book/src/building/swiftc-and-cargo/README.md index 45dc9fab..38f394c6 100644 --- a/book/src/building/swiftc-and-cargo/README.md +++ b/book/src/building/swiftc-and-cargo/README.md @@ -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 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