-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.web.toml
76 lines (64 loc) · 2.1 KB
/
Cargo.web.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
71
72
73
74
75
76
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"
[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"
reqwest = { version = "0.12.4", features = ["json"] }
async-recursion = "1.1.1"
futures = "0.3.30"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
jsonwebtoken = "8.3.0"
dotenvy = "0.15.7"
dotenvy_macro = "0.15.7"
common = { path = "common" }
dioxus = { version = "0.5", features = ["web", "router", "hooks"] }
dioxus-web = { version = "0.5", features = ["hydrate"] }
dioxus-router = { version = "0.5", features = ["web"] }
dioxus-hooks = "0.5"
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.13"
jni = "0.21.0"
paste = "1.0"
[target.'cfg(not(target_os = "android"))'.dependencies]
env_logger = "0.9.0"
[target.'cfg(target_os = "ios")'.dependencies]
core-foundation = "0.9.3"
[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"