-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (50 loc) · 1.6 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
[package]
name = "rusty-weather"
version = "1.0.0"
authors = ["FELGO GmbH <contact@felgo.com>"]
edition = "2021"
build = "build.rs"
[features]
open_weather = ["dep:openweather_sdk", "dep:openssl"]
[dependencies]
async-std = "1.12.0"
chrono = "0.4.38"
directories = "5.0.1"
log = "0.4.21"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.115"
slint = { version = "1.7", features = [ "backend-android-activity-06" ] }
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "android")))'.dependencies]
env_logger = "0.11.3"
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.14.1"
openssl = { version = "0.10", features = ["vendored"], optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
openweather_sdk = { version = "0.1.8", optional = true }
tokio = "1.37.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_log = "1.0"
console_error_panic_hook = "0.1.7"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
[build-dependencies]
slint-build = "1.7"
# Android-activity / wasm support
[lib]
name="rusty_weather_lib"
crate-type = ["cdylib"]
path = "src/lib.rs"
# Andoroid settings
# See more: https://github.com/rust-mobile/cargo-apk?tab=readme-ov-file#manifest
[package.metadata.android]
package = "com.felgo.demos.rustyweather"
resources = "android-res"
build_targets = [ "aarch64-linux-android" ]
[package.metadata.android.sdk]
min_sdk_version = 29
target_sdk_version = 32
[package.metadata.android.application]
label = "Rusty Weather"
icon = "@mipmap/ic_launcher"
[[package.metadata.android.uses_permission]]
name = "android.permission.INTERNET"