Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ members = [
"fixtures/simple-fns",
"fixtures/trait-methods",
"fixtures/trait-interfaces",
"fixtures/dart_async",
#"fixtures/*",
]

Expand Down
14 changes: 8 additions & 6 deletions fixtures/dart_async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ name = "dart_async"
crate-type = ["lib", "cdylib"]

[dependencies]
uniffi = { workspace = true, features = ["tokio"]}
tokio = { version = "1.24.1", features = ["time"] }
thiserror = "1.0"
uniffi = { workspace = true, features = ["tokio", "cli", "scaffolding-ffi-buffer-fns"] }
async-trait = "0.1"
futures = "0.3"
tokio = { version = "1.38.2", features = ["time", "sync"] }
once_cell = "1.18.0"
thiserror = "2"

[build-dependencies]
uniffi = { workspace = true, features = ["build", "scaffolding-ffi-buffer-fns"] }
uniffi-dart = { path = "../../", features = ["build"] }

[dev-dependencies]
uniffi = { workspace = true, features = ["bindgen-tests"] }
uniffi-dart = { path = "../../", features = ["bindgen-tests"] }
uniffi = { workspace = true, features = [
"bindgen-tests",
] }
anyhow = "1"
4 changes: 2 additions & 2 deletions fixtures/dart_async/src/api.udl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace dart_async {
namespace dart_async {
// UDL-defined async functions (testing UDL vs proc-macro async support)
[Async]
boolean udl_always_ready();
boolean always_ready();
};

// UDL-defined async trait interface
Expand Down
Loading