File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ edition = "2021"
88crate-type = [" lib" , " staticlib" , " cdylib" ]
99name = " rust_cktap"
1010
11+
1112[dependencies ]
1213ciborium = " 0.2.0"
1314serde = " 1"
@@ -25,15 +26,16 @@ bitcoin = { version = "0.32", features = ["rand-std"] }
2526# logging
2627log = " 0.4"
2728
28- # uniffi todo: make this optional
29- uniffi = { version = " 0.29.1 " , features = [" cli" ] }
29+ # uniffi
30+ uniffi = { version = " 0.29" , features = [" cli" ], optional = true }
3031
3132pcsc = { version = " 2" , optional = true }
3233
3334[build-dependencies ]
3435uniffi = { version = " 0.29.1" , features = [" build" ] }
3536
3637[features ]
38+ uniffi = [" dep:uniffi" ]
3739default = []
3840emulator = []
3941
Original file line number Diff line number Diff line change 1+ #[ cfg( feature = "uniffi" ) ]
12uniffi:: setup_scaffolding!( ) ;
23
34extern crate core;
@@ -13,7 +14,10 @@ pub use bitcoin::secp256k1::{self, rand};
1314
1415#[ cfg( feature = "emulator" ) ]
1516pub mod emulator;
17+
18+ #[ cfg( feature = "uniffi" ) ]
1619mod ffi;
20+
1721#[ cfg( feature = "pcsc" ) ]
1822pub mod pcsc;
1923pub mod sats_card;
You can’t perform that action at this time.
0 commit comments