-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
70 lines (59 loc) · 1.91 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
workspace = { members = ["api", "common"] }
[package]
name = "t5-rs"
version = "0.1.0"
authors = ["Alberto Del Buono Paolini <[email protected]>"]
edition = "2018"
[lib]
crate-type = ["staticlib", "cdylib", "rlib"]
[[bin]]
name = "t5-rs-desktop"
path = "gen/bin/desktop.rs"
[[bin]]
name = "t5-rs"
path = "gen/bin/web.rs"
[package.metadata.cargo-android]
app-activity-name = "com.example.t5_rs.MainActivity"
app-dependencies = [
"androidx.webkit:webkit:1.6.1",
"androidx.appcompat:appcompat:1.6.1",
"com.google.android.material:material:1.8.0",
]
project-dependencies = ["org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21"]
app-plugins = ["org.jetbrains.kotlin.android"]
app-permissions = ["android.permission.INTERNET"]
app-theme-parent = "Theme.MaterialComponents.DayNight.DarkActionBar"
vulkan-validation = false
[package.metadata.cargo-android.env-vars]
WRY_ANDROID_PACKAGE = "com.example.t5_rs"
WRY_ANDROID_LIBRARY = "t5_rs"
WRY_ANDROID_KOTLIN_FILES_OUT_DIR = "<android-project-dir>/app/src/main/kotlin/com/example/t5_rs"
[package.metadata.cargo-apple.ios]
frameworks = ["WebKit"]
[dependencies]
anyhow = "1.0"
log = "0.4"
async-recursion = "1.1.1"
futures = "0.3.30"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
common = { path = "common", default-features = false }
dioxus = { version = "0.5", features = ["web", "router", "hooks"], default-features = false }
dioxus-web = { version = "0.5", features = ["hydrate"] }
dioxus-router = { version = "0.5", features = ["web"] }
dioxus-hooks = "0.5"
[features]
default = []
web = ["dioxus/web"]
# Web logging configuration
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-logger = "0.2.0"
console_error_panic_hook = "0.1.7"
web-sys = { version = "0.3", default-features = false, features = [
"Storage",
"Window",
] }
thiserror = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
wry = "0.37"
tao = "0.26"