mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-05-24 22:32:12 +00:00
move files
This commit is contained in:
parent
4ffd367b23
commit
6516c4564c
43 changed files with 33 additions and 56 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -47,3 +47,4 @@ app.*.map.json
|
|||
/android/app/.cxx/
|
||||
android/.kotlin/
|
||||
devtools_options.yaml
|
||||
rust/target
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
rust_input: crate::bridge
|
||||
rust_root: rust/core
|
||||
rust_root: rust
|
||||
dart_output: lib/core
|
||||
|
|
@ -75,7 +75,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
|||
static const kDefaultExternalLibraryLoaderConfig =
|
||||
ExternalLibraryLoaderConfig(
|
||||
stem: 'rust_lib_twonly',
|
||||
ioDirectory: 'rust/core/target/release/',
|
||||
ioDirectory: 'rust/target/release/',
|
||||
webPrefix: 'pkg/',
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1810,7 +1810,7 @@ packages:
|
|||
source: hosted
|
||||
version: "2.4.0"
|
||||
sqlite3:
|
||||
dependency: transitive
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: sqlite3
|
||||
sha256: "3145bd74dcdb4fd6f5c6dda4d4e4490a8087d7f286a14dee5d37087290f0f8a2"
|
||||
|
|
|
|||
|
|
@ -58,12 +58,13 @@ dependencies:
|
|||
json_annotation: ^4.9.0 # google.dev
|
||||
protobuf: ^4.0.0 # google.dev
|
||||
scrollable_positioned_list: ^0.3.8 # google.dev
|
||||
drift: ^2.25.1
|
||||
drift_flutter: ^0.2.4
|
||||
sqlite3: ^2.9.4
|
||||
|
||||
|
||||
# Flutter Favorite
|
||||
provider: ^6.1.2
|
||||
drift: ^2.25.1
|
||||
drift_flutter: ^0.2.4
|
||||
flutter_local_notifications: ^19.1.0
|
||||
sentry_flutter: ^9.14.0
|
||||
|
||||
|
|
@ -112,6 +113,7 @@ dependencies:
|
|||
path: rust_builder
|
||||
flutter_rust_bridge: 2.12.0
|
||||
|
||||
|
||||
dependency_overrides:
|
||||
dots_indicator:
|
||||
path: ./dependencies/dots_indicator
|
||||
|
|
|
|||
4
rust/.gitignore
vendored
4
rust/.gitignore
vendored
|
|
@ -1 +1,3 @@
|
|||
/target
|
||||
/target
|
||||
|
||||
tests/tmp_testing.db*
|
||||
31
rust/Cargo.lock
generated
31
rust/Cargo.lock
generated
|
|
@ -139,7 +139,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "5106bf2680d585dc5f29711b8aa5dde353180b8e14af89b7f0424f760c84e7ce"
|
||||
dependencies = [
|
||||
"hashbrown 0.15.5",
|
||||
"rand 0.8.5",
|
||||
"rand 0.8.6",
|
||||
"zeroize",
|
||||
]
|
||||
|
||||
|
|
@ -1160,7 +1160,7 @@ dependencies = [
|
|||
"num-integer",
|
||||
"num-iter",
|
||||
"num-traits",
|
||||
"rand 0.8.5",
|
||||
"rand 0.8.6",
|
||||
"smallvec",
|
||||
"zeroize",
|
||||
]
|
||||
|
|
@ -1436,7 +1436,6 @@ dependencies = [
|
|||
"base64",
|
||||
"blahaj",
|
||||
"hmac 0.13.0",
|
||||
"pretty_env_logger",
|
||||
"prost",
|
||||
"prost-build",
|
||||
"rand 0.10.1",
|
||||
|
|
@ -1466,9 +1465,9 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|||
|
||||
[[package]]
|
||||
name = "rand"
|
||||
version = "0.8.5"
|
||||
version = "0.8.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
||||
checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"rand_chacha",
|
||||
|
|
@ -1912,7 +1911,7 @@ dependencies = [
|
|||
"md-5",
|
||||
"memchr",
|
||||
"percent-encoding",
|
||||
"rand 0.8.5",
|
||||
"rand 0.8.6",
|
||||
"rsa",
|
||||
"serde",
|
||||
"sha1",
|
||||
|
|
@ -1950,7 +1949,7 @@ dependencies = [
|
|||
"log",
|
||||
"md-5",
|
||||
"memchr",
|
||||
"rand 0.8.5",
|
||||
"rand 0.8.6",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2 0.10.9",
|
||||
|
|
@ -2110,9 +2109,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
|||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.52.0"
|
||||
version = "1.52.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a91135f59b1cbf38c91e73cf3386fca9bb77915c45ce2771460c9d92f0f3d776"
|
||||
checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
|
|
@ -2256,11 +2255,11 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|||
|
||||
[[package]]
|
||||
name = "wasip2"
|
||||
version = "1.0.2+wasi-0.2.9"
|
||||
version = "1.0.3+wasi-0.2.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
|
||||
checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
|
||||
dependencies = [
|
||||
"wit-bindgen",
|
||||
"wit-bindgen 0.57.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -2269,7 +2268,7 @@ version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
|
||||
dependencies = [
|
||||
"wit-bindgen",
|
||||
"wit-bindgen 0.51.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -2546,6 +2545,12 @@ dependencies = [
|
|||
"wit-bindgen-rust-macro",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wit-bindgen"
|
||||
version = "0.57.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
|
||||
|
||||
[[package]]
|
||||
name = "wit-bindgen-core"
|
||||
version = "0.51.0"
|
||||
|
|
|
|||
3
rust/core/.gitignore
vendored
3
rust/core/.gitignore
vendored
|
|
@ -1,3 +0,0 @@
|
|||
/target
|
||||
|
||||
tests/tmp_testing.db*
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
[package]
|
||||
name = "rust_lib_twonly"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "staticlib"]
|
||||
|
||||
[dependencies]
|
||||
flutter_rust_bridge = "=2.12.0"
|
||||
thiserror = "2.0.18"
|
||||
sqlx = { version = "0.9.0-alpha.1", default-features = false, features = [
|
||||
"runtime-tokio",
|
||||
"sqlite",
|
||||
"migrate",
|
||||
"macros",
|
||||
"chrono",
|
||||
"derive",
|
||||
"json",
|
||||
] }
|
||||
tokio = { version = "1.44", features = ["full"] }
|
||||
tracing = "0.1.44"
|
||||
rand = "0.10.1"
|
||||
protocols = { path = "../protocols" }
|
||||
parking_lot = "0.12.5"
|
||||
|
||||
[dev-dependencies]
|
||||
pretty_env_logger = "0.5.0"
|
||||
tempfile = "3.27.0"
|
||||
|
||||
|
||||
[build-dependencies]
|
||||
prost-build = "0.14.1"
|
||||
3
rust_dependencies/Cargo.toml
Normal file
3
rust_dependencies/Cargo.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[workspace]
|
||||
members = ["protocols"]
|
||||
resolver = "3"
|
||||
|
|
@ -11,7 +11,7 @@ void main() {
|
|||
late File dbFile;
|
||||
|
||||
setUp(() {
|
||||
dbFile = File('rust/core/tests/testing.db');
|
||||
dbFile = File('rust/tests/testing.db');
|
||||
if (dbFile.existsSync()) {
|
||||
dbFile.deleteSync();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue