@@ -6,8 +6,12 @@ license = "MIT OR Apache-2.0"
66exclude = [" tests" ]
77
88[features ]
9- _test-utils = [" payjoin-test-utils" , " tokio" ]
9+ default = [" io" ]
10+ dart = [" dep:uniffi-dart" ]
11+ io = [" payjoin/io" ]
12+ _test-utils = [" payjoin-test-utils" , " tokio" , " io" ]
1013_manual-tls = [" payjoin/_manual-tls" ]
14+ wasm_js = [" getrandom/js" ]
1115
1216[lib ]
1317name = " payjoin_ffi"
@@ -19,22 +23,23 @@ path = "uniffi-bindgen.rs"
1923
2024[build-dependencies ]
2125uniffi = { version = " 0.29.4" , features = [" build" , " cli" ] }
22- uniffi-dart = { git = " https://github.com/Uniffi-Dart/uniffi-dart.git" , rev = " 04f0007" , features = [" build" ] }
26+ uniffi-dart = { git = " https://github.com/Uniffi-Dart/uniffi-dart.git" , rev = " 04f0007" , features = [" build" ], optional = true }
2327
2428[dependencies ]
2529base64 = " 0.22.1"
2630bitcoin-ffi = { git = " https://github.com/benalleng/bitcoin-ffi.git" , rev = " 8e3a23b" }
31+ getrandom = " 0.2"
2732hex = " 0.4.3"
2833lazy_static = " 1.5.0"
2934ohttp = { package = " bitcoin-ohttp" , version = " 0.6.0" }
30- payjoin = { version = " 1.0.0-rc.1" , features = [" v1" , " v2" , " io " ] }
35+ payjoin = { version = " 1.0.0-rc.1" , features = [" v1" , " v2" ] }
3136payjoin-test-utils = { version = " 0.0.1" , optional = true }
3237serde = { version = " 1.0.219" , features = [" derive" ] }
3338serde_json = " 1.0.142"
3439thiserror = " 2.0.14"
3540tokio = { version = " 1.47.1" , features = [" full" ], optional = true }
3641uniffi = { version = " 0.29.4" }
37- uniffi-dart = { git = " https://github.com/Uniffi-Dart/uniffi-dart.git" , rev = " 04f0007" }
42+ uniffi-dart = { git = " https://github.com/Uniffi-Dart/uniffi-dart.git" , rev = " 04f0007" , optional = true }
3843url = " 2.5.4"
3944
4045[dev-dependencies ]
0 commit comments