Skip to content

Commit

Permalink
Merge pull request #126 from bitcoinppl/upgrade-uniffi
Browse files Browse the repository at this point in the history
Upgrade uniffi to master and remove useless ffi mods
  • Loading branch information
praveenperera authored Nov 20, 2024
2 parents 1fb6a03 + bcf8766 commit b6537d2
Show file tree
Hide file tree
Showing 23 changed files with 4,746 additions and 2,621 deletions.
603 changes: 436 additions & 167 deletions rust/Cargo.lock

Large diffs are not rendered by default.

61 changes: 40 additions & 21 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,38 @@ default = ["uniffi/cli"]
macros = { path = "./crates/macros" }

# bdk / bitcoin
bdk_wallet = { version = "1.0.0-beta.5", features = ["keys-bip39", "file_store"], git = "https://github.com/bitcoinppl/bdk" }
bdk_wallet = { version = "1.0.0-beta.5", features = [
"keys-bip39",
"file_store",
], git = "https://github.com/bitcoinppl/bdk" }
bip39 = { version = "2.0.0", features = ["zeroize"] }

# bitcoin nodes
# bdk_esplora = { version = "0.19", features = ["async-https"] }
bdk_esplora = { version = "0.19", git = "https://github.com/bitcoinppl/bdk", features = ["async-https", "tokio" ] }
bdk_electrum = { version = "0.19", features = ["use-rustls-ring"], default-features = false, git = "https://github.com/bitcoinppl/bdk" }
bdk_esplora = { version = "0.19", git = "https://github.com/bitcoinppl/bdk", features = [
"async-https",
"tokio",
] }
bdk_electrum = { version = "0.19", features = [
"use-rustls-ring",
], default-features = false, git = "https://github.com/bitcoinppl/bdk" }
# bdk_bitcoind_rpc = { version = "0.12", features = [] }

# store bdk wallet data
bdk_file_store = { version = "0.17.0", git = "http://github.com/bitcoinppl/bdk"}
bdk_chain = { version = "0.20.0", git = "https://github.com/bitcoinppl/bdk"}
bdk_file_store = { version = "0.17.0", git = "http://github.com/bitcoinppl/bdk" }
bdk_chain = { version = "0.20.0", git = "https://github.com/bitcoinppl/bdk" }

# import / export hardware wallet public keys
pubport = { version = "0.2.0", git = "https://github.com/bitcoinppl/pubport.git", features = []}
pubport = { version = "0.2.0", git = "https://github.com/bitcoinppl/pubport.git", features = [
] }

bitcoin = "0.32"
bitcoin-units = "0.1"
bitcoin_hashes = "0.14.0"

# async / actors
tokio = { version = "1.38", features = ["rt"] }
act-zero = {version = "0.4.0", features = ["default-tokio"]}
act-zero = { version = "0.4.0", features = ["default-tokio"] }
async-trait = "0.1.81"
futures = "0.3.30"
tryhard = "0.5"
Expand All @@ -52,12 +61,12 @@ zeroize = "1.8.1"

# concurrency
crossbeam = "0.8.4"
parking_lot = {version = "0.12.1", features = ["deadlock_detection"]}
parking_lot = { version = "0.12.1", features = ["deadlock_detection"] }
once_cell = "1.19.0"

# error handling
eyre = "0.6"
thiserror = "1.0"
thiserror = "2.0"

# logging
tracing = "0.1"
Expand All @@ -74,22 +83,30 @@ redb = "2.1"
nid = "3.0"

# derive stuff
derive_more = {version = "1.0", features = ["display", "from", "into", "as_ref", "from_str", "deref", "deref_mut"]}
strum = {version = "0.26", features = ["derive"]}
derive_more = { version = "1.0", features = [
"display",
"from",
"into",
"as_ref",
"from_str",
"deref",
"deref_mut",
] }
strum = { version = "0.26", features = ["derive"] }

# helpers / utils / exts
tap = "1.0.1"
itertools = "0.13"

# time
jiff = { version ="0.1", features = ["tz-system"] }
jiff = { version = "0.1", features = ["tz-system"] }

# ser/de
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0"

# bindings
uniffi = { version = "=0.28.1", features = ["tokio"] }
uniffi = { git = "https://github.com/mozilla/uniffi-rs", features = ["tokio"] }

# hashing
sha2 = "0.10.8"
Expand Down Expand Up @@ -117,7 +134,7 @@ reqwest = { version = "0.12", features = ["json"] }
# qr
# static link libz-sys
libz-sys = { version = "1.1", features = ["static"] }
bbqr = {version = "0.3", default-features = false}
bbqr = { version = "0.3", default-features = false }

# hex
hex = "0.4.3"
Expand All @@ -129,20 +146,22 @@ winnow = "0.6.0"
arc-swap = "1.7"

[build-dependencies]
uniffi = { version = "=0.28.1", features = ["build"] }
uniffi = { git = "https://github.com/mozilla/uniffi-rs", features = ["build"] }

[dev-dependencies]
tokio = { version = "1.38", features = ["rt", "test-util", "macros"] }
uniffi = { version = "=0.28.1", features = ["bindgen-tests"] }
uniffi = { git = "https://github.com/mozilla/uniffi-rs", features = [
"bindgen-tests",
] }

[profile.release]
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
strip = "debuginfo"

[profile.release-smaller]
inherits = "release"
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = "debuginfo"
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = "debuginfo"
6 changes: 3 additions & 3 deletions rust/crates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ version = "0.1.0"
edition = "2021"

[workspace]
members = [ "./macros" ]
members = ["./macros"]

[workspace.dependencies]
# bindings
uniffi = { version = "=0.28.1", features = ["tokio"] }
uniffi = { version = "=0.28.3", features = ["tokio"] }

# error handling
thiserror = "1.0"

# derive macros
derive_more = { version = "1", features = ["display", "from", "error"]}
derive_more = { version = "1", features = ["display", "from", "error"] }

# logging
tracing = "0.1"
Expand Down
Loading

0 comments on commit b6537d2

Please sign in to comment.