mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-21 01:32:03 +03:00
65 lines
1.4 KiB
TOML
65 lines
1.4 KiB
TOML
[package]
|
|
name = "api"
|
|
version = "0.1.0"
|
|
description = "An example Tauri Application showcasing the api"
|
|
edition = "2021"
|
|
rust-version = "1.57"
|
|
license = "Apache-2.0 OR MIT"
|
|
|
|
[patch.crates-io]
|
|
wry = { git = "https://github.com/tauri-apps/wry", branch = "dev" }
|
|
|
|
[lib]
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "isolation"] }
|
|
|
|
[dependencies]
|
|
serde_json = "1.0"
|
|
serde = { version = "1.0", features = [ "derive" ] }
|
|
tiny_http = "0.11"
|
|
|
|
[dependencies.tauri]
|
|
path = "../../../core/tauri"
|
|
features = [
|
|
"api-all",
|
|
"cli",
|
|
"global-shortcut",
|
|
"http-multipart",
|
|
"icon-ico",
|
|
"icon-png",
|
|
"isolation",
|
|
"macos-private-api",
|
|
"windows7-compat",
|
|
"reqwest-client",
|
|
"reqwest-native-tls-vendored",
|
|
"system-tray",
|
|
"updater"
|
|
]
|
|
|
|
[target."cfg(target_os = \"windows\")".dependencies]
|
|
window-vibrancy = "0.2"
|
|
window-shadows= "0.2"
|
|
|
|
[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
|
|
log = "0.4"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android_logger = "0.9.0"
|
|
|
|
[target.'cfg(target_os = "ios")'.dependencies]
|
|
env_logger = "0.9.0"
|
|
|
|
[features]
|
|
default = [ "custom-protocol" ]
|
|
custom-protocol = [ "tauri/custom-protocol" ]
|
|
|
|
# default to small, optimized release binaries
|
|
[profile.release]
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
lto = true
|
|
incremental = false
|
|
opt-level = "s"
|