From 0e28c2ba429081ec43fcb0218d384d0a949b8b52 Mon Sep 17 00:00:00 2001 From: vidy Date: Sun, 2 Mar 2025 21:13:39 +0800 Subject: [PATCH] Add the missing new method to Workspace ffi --- .github/CLA.md | 1 + libs/jwst-binding/jwst-swift/src/lib.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/CLA.md b/.github/CLA.md index bee3e7b89..adaffa4fb 100644 --- a/.github/CLA.md +++ b/.github/CLA.md @@ -57,3 +57,4 @@ Example: - Metal A-wing, @a-wing, 2023/05/30 - Xuanwo, @Xuanwo, 2023/06/21 - Bryan, @ImSingee, 2023/10/25 +- Vidy Videni, @videni, 2025/03/05 diff --git a/libs/jwst-binding/jwst-swift/src/lib.rs b/libs/jwst-binding/jwst-swift/src/lib.rs index 466e149bf..b56e994b4 100644 --- a/libs/jwst-binding/jwst-swift/src/lib.rs +++ b/libs/jwst-binding/jwst-swift/src/lib.rs @@ -92,6 +92,9 @@ mod ffi { extern "Rust" { type Workspace; + #[swift_bridge(init)] + fn new(id: String) -> Workspace; + fn id(self: &Workspace) -> String; fn client_id(self: &Workspace) -> u64;