Skip to content

Commit 8abfcec

Browse files
committed
Switch to Dart native assets
With the changes from Uniffi-Dart/uniffi-dart#99, the native libraries can be compiled automagically in a dart build hook.
1 parent 3e455a3 commit 8abfcec

File tree

9 files changed

+104
-339
lines changed

9 files changed

+104
-339
lines changed

Cargo-minimal.lock

Lines changed: 25 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ source = "git+https://github.com/spacebear21/bitcoin-ffi.git?rev=39cc12b#39cc12b
467467
dependencies = [
468468
"bitcoin 0.32.7",
469469
"thiserror 1.0.63",
470-
"uniffi 0.30.0",
470+
"uniffi",
471471
]
472472

473473
[[package]]
@@ -2480,7 +2480,7 @@ dependencies = [
24802480
"serde_json",
24812481
"thiserror 2.0.15",
24822482
"tokio",
2483-
"uniffi 0.30.0",
2483+
"uniffi",
24842484
"uniffi-dart",
24852485
"url",
24862486
]
@@ -4045,21 +4045,6 @@ version = "1.12.0"
40454045
source = "registry+https://github.com/rust-lang/crates.io-index"
40464046
checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
40474047

4048-
[[package]]
4049-
name = "uniffi"
4050-
version = "0.29.4"
4051-
source = "registry+https://github.com/rust-lang/crates.io-index"
4052-
checksum = "c6d968cb62160c11f2573e6be724ef8b1b18a277aededd17033f8a912d73e2b4"
4053-
dependencies = [
4054-
"anyhow",
4055-
"cargo_metadata",
4056-
"uniffi_bindgen 0.29.4",
4057-
"uniffi_build 0.29.4",
4058-
"uniffi_core 0.29.4",
4059-
"uniffi_macros 0.29.4",
4060-
"uniffi_pipeline 0.29.4",
4061-
]
4062-
40634048
[[package]]
40644049
name = "uniffi"
40654050
version = "0.30.0"
@@ -4070,17 +4055,17 @@ dependencies = [
40704055
"camino",
40714056
"cargo_metadata",
40724057
"clap",
4073-
"uniffi_bindgen 0.30.0",
4074-
"uniffi_build 0.30.0",
4075-
"uniffi_core 0.30.0",
4076-
"uniffi_macros 0.30.0",
4077-
"uniffi_pipeline 0.30.0",
4058+
"uniffi_bindgen",
4059+
"uniffi_build",
4060+
"uniffi_core",
4061+
"uniffi_macros",
4062+
"uniffi_pipeline",
40784063
]
40794064

40804065
[[package]]
40814066
name = "uniffi-dart"
40824067
version = "0.1.0"
4083-
source = "git+https://github.com/Uniffi-Dart/uniffi-dart.git?rev=364b117#364b11767096ccaaa1e6f681fdfc354cb4cd9d5d"
4068+
source = "git+https://github.com/spacebear21/uniffi-dart.git?rev=bdfc10a#bdfc10a5408c505740c82f11d086008289a86997"
40844069
dependencies = [
40854070
"anyhow",
40864071
"camino",
@@ -4091,39 +4076,13 @@ dependencies = [
40914076
"proc-macro2",
40924077
"serde",
40934078
"stringcase 0.4.0",
4094-
"toml 0.5.11",
4095-
"uniffi 0.29.4",
4096-
"uniffi_bindgen 0.29.4",
4097-
"uniffi_build 0.29.4",
4079+
"toml 0.9.5",
4080+
"uniffi",
4081+
"uniffi_bindgen",
4082+
"uniffi_build",
40984083
"uniffi_dart_macro",
40994084
]
41004085

4101-
[[package]]
4102-
name = "uniffi_bindgen"
4103-
version = "0.29.4"
4104-
source = "registry+https://github.com/rust-lang/crates.io-index"
4105-
checksum = "f6b39ef1acbe1467d5d210f274fae344cb6f8766339330cb4c9688752899bf6b"
4106-
dependencies = [
4107-
"anyhow",
4108-
"askama",
4109-
"camino",
4110-
"cargo_metadata",
4111-
"fs-err",
4112-
"glob",
4113-
"goblin",
4114-
"heck",
4115-
"indexmap",
4116-
"once_cell",
4117-
"serde",
4118-
"tempfile",
4119-
"textwrap",
4120-
"toml 0.5.11",
4121-
"uniffi_internal_macros 0.29.4",
4122-
"uniffi_meta 0.29.4",
4123-
"uniffi_pipeline 0.29.4",
4124-
"uniffi_udl 0.29.4",
4125-
]
4126-
41274086
[[package]]
41284087
name = "uniffi_bindgen"
41294088
version = "0.30.0"
@@ -4144,21 +4103,10 @@ dependencies = [
41444103
"tempfile",
41454104
"textwrap",
41464105
"toml 0.9.5",
4147-
"uniffi_internal_macros 0.30.0",
4148-
"uniffi_meta 0.30.0",
4149-
"uniffi_pipeline 0.30.0",
4150-
"uniffi_udl 0.30.0",
4151-
]
4152-
4153-
[[package]]
4154-
name = "uniffi_build"
4155-
version = "0.29.4"
4156-
source = "registry+https://github.com/rust-lang/crates.io-index"
4157-
checksum = "6683e6b665423cddeacd89a3f97312cf400b2fb245a26f197adaf65c45d505b2"
4158-
dependencies = [
4159-
"anyhow",
4160-
"camino",
4161-
"uniffi_bindgen 0.29.4",
4106+
"uniffi_internal_macros",
4107+
"uniffi_meta",
4108+
"uniffi_pipeline",
4109+
"uniffi_udl",
41624110
]
41634111

41644112
[[package]]
@@ -4169,20 +4117,7 @@ checksum = "3e55c05228f4858bb258f651d21d743fcc1fe5a2ec20d3c0f9daefddb105ee4d"
41694117
dependencies = [
41704118
"anyhow",
41714119
"camino",
4172-
"uniffi_bindgen 0.30.0",
4173-
]
4174-
4175-
[[package]]
4176-
name = "uniffi_core"
4177-
version = "0.29.4"
4178-
source = "registry+https://github.com/rust-lang/crates.io-index"
4179-
checksum = "c2d990b553d6b9a7ee9c3ae71134674739913d52350b56152b0e613595bb5a6f"
4180-
dependencies = [
4181-
"anyhow",
4182-
"async-compat",
4183-
"bytes",
4184-
"once_cell",
4185-
"static_assertions",
4120+
"uniffi_bindgen",
41864121
]
41874122

41884123
[[package]]
@@ -4192,6 +4127,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
41924127
checksum = "7e7a5a038ebffe8f4cf91416b154ef3c2468b18e828b7009e01b1b99938089f9"
41934128
dependencies = [
41944129
"anyhow",
4130+
"async-compat",
41954131
"bytes",
41964132
"once_cell",
41974133
"static_assertions",
@@ -4200,27 +4136,14 @@ dependencies = [
42004136
[[package]]
42014137
name = "uniffi_dart_macro"
42024138
version = "0.1.0"
4203-
source = "git+https://github.com/Uniffi-Dart/uniffi-dart.git?rev=364b117#364b11767096ccaaa1e6f681fdfc354cb4cd9d5d"
4139+
source = "git+https://github.com/spacebear21/uniffi-dart.git?rev=bdfc10a#bdfc10a5408c505740c82f11d086008289a86997"
42044140
dependencies = [
42054141
"futures",
42064142
"proc-macro2",
42074143
"quote",
42084144
"stringcase 0.3.0",
42094145
"syn 1.0.109",
4210-
"uniffi 0.29.4",
4211-
]
4212-
4213-
[[package]]
4214-
name = "uniffi_internal_macros"
4215-
version = "0.29.4"
4216-
source = "registry+https://github.com/rust-lang/crates.io-index"
4217-
checksum = "04f4f224becf14885c10e6e400b95cc4d1985738140cb194ccc2044563f8a56b"
4218-
dependencies = [
4219-
"anyhow",
4220-
"indexmap",
4221-
"proc-macro2",
4222-
"quote",
4223-
"syn 2.0.106",
4146+
"uniffi",
42244147
]
42254148

42264149
[[package]]
@@ -4236,23 +4159,6 @@ dependencies = [
42364159
"syn 2.0.106",
42374160
]
42384161

4239-
[[package]]
4240-
name = "uniffi_macros"
4241-
version = "0.29.4"
4242-
source = "registry+https://github.com/rust-lang/crates.io-index"
4243-
checksum = "b481d385af334871d70904e6a5f129be7cd38c18fcf8dd8fd1f646b426a56d58"
4244-
dependencies = [
4245-
"camino",
4246-
"fs-err",
4247-
"once_cell",
4248-
"proc-macro2",
4249-
"quote",
4250-
"serde",
4251-
"syn 2.0.106",
4252-
"toml 0.5.11",
4253-
"uniffi_meta 0.29.4",
4254-
]
4255-
42564162
[[package]]
42574163
name = "uniffi_macros"
42584164
version = "0.30.0"
@@ -4267,19 +4173,7 @@ dependencies = [
42674173
"serde",
42684174
"syn 2.0.106",
42694175
"toml 0.9.5",
4270-
"uniffi_meta 0.30.0",
4271-
]
4272-
4273-
[[package]]
4274-
name = "uniffi_meta"
4275-
version = "0.29.4"
4276-
source = "registry+https://github.com/rust-lang/crates.io-index"
4277-
checksum = "10f817868a3b171bb7bf259e882138d104deafde65684689b4694c846d322491"
4278-
dependencies = [
4279-
"anyhow",
4280-
"siphasher",
4281-
"uniffi_internal_macros 0.29.4",
4282-
"uniffi_pipeline 0.29.4",
4176+
"uniffi_meta",
42834177
]
42844178

42854179
[[package]]
@@ -4290,21 +4184,8 @@ checksum = "0a138823392dba19b0aa494872689f97d0ee157de5852e2bec157ce6de9cdc22"
42904184
dependencies = [
42914185
"anyhow",
42924186
"siphasher",
4293-
"uniffi_internal_macros 0.30.0",
4294-
"uniffi_pipeline 0.30.0",
4295-
]
4296-
4297-
[[package]]
4298-
name = "uniffi_pipeline"
4299-
version = "0.29.4"
4300-
source = "registry+https://github.com/rust-lang/crates.io-index"
4301-
checksum = "4b147e133ad7824e32426b90bc41fda584363563f2ba747f590eca1fd6fd14e6"
4302-
dependencies = [
4303-
"anyhow",
4304-
"heck",
4305-
"indexmap",
4306-
"tempfile",
4307-
"uniffi_internal_macros 0.29.4",
4187+
"uniffi_internal_macros",
4188+
"uniffi_pipeline",
43084189
]
43094190

43104191
[[package]]
@@ -4317,19 +4198,7 @@ dependencies = [
43174198
"heck",
43184199
"indexmap",
43194200
"tempfile",
4320-
"uniffi_internal_macros 0.30.0",
4321-
]
4322-
4323-
[[package]]
4324-
name = "uniffi_udl"
4325-
version = "0.29.4"
4326-
source = "registry+https://github.com/rust-lang/crates.io-index"
4327-
checksum = "caed654fb73da5abbc7a7e9c741532284532ba4762d6fe5071372df22a41730a"
4328-
dependencies = [
4329-
"anyhow",
4330-
"textwrap",
4331-
"uniffi_meta 0.29.4",
4332-
"weedle2",
4201+
"uniffi_internal_macros",
43334202
]
43344203

43354204
[[package]]
@@ -4340,7 +4209,7 @@ checksum = "d0adacdd848aeed7af4f5af7d2f621d5e82531325d405e29463482becfdeafca"
43404209
dependencies = [
43414210
"anyhow",
43424211
"textwrap",
4343-
"uniffi_meta 0.30.0",
4212+
"uniffi_meta",
43444213
"weedle2",
43454214
]
43464215

0 commit comments

Comments
 (0)