53 lines
1.4 KiB
TOML
53 lines
1.4 KiB
TOML
[package]
|
|
name = "eframe_template_android"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
# Common dependencies
|
|
[dependencies]
|
|
egui = "0.27.0"
|
|
log = "0.4.21"
|
|
|
|
# eframe features for non android targets
|
|
[target.'cfg(not(target_os = "android"))'.dependencies.eframe]
|
|
version = "0.27.0"
|
|
default-features = false
|
|
features = ["accesskit", "default_fonts", "glow"]
|
|
|
|
# eframe features for android targets
|
|
[target.'cfg(target_os = "android")'.dependencies.eframe]
|
|
version = "0.27.0"
|
|
default-features = false
|
|
features = ["accesskit", "default_fonts", "glow", "android-native-activity"]
|
|
|
|
# android only dependencies
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android_logger = "0.13.3"
|
|
#android-activity = { version = "0.5", features = ["native-activity"] }
|
|
winit = { version = "0.29.4", features = ["android-native-activity"] }
|
|
|
|
# native only dependencies
|
|
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "android")))'.dependencies]
|
|
env_logger = "0.10"
|
|
|
|
# web only dependencies
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
[profile.release]
|
|
opt-level = 2
|
|
|
|
# Optimize all dependencies even in debug builds:
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[[bin]]
|
|
# data-target-name in index.html must match this name for trunk to work
|
|
name = "eframe_template"
|
|
path = "src/main.rs"
|