-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
46 lines (38 loc) · 1.43 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
[package]
name = "dodometer"
version = "0.1.1"
edition = "2021"
description = "A sleep tracking tool"
authors = ["Sebastien Bechet"]
repository = "https://codeberg.org/sbechet/dodometer"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
tracing-subscriber = "0.3"
log = "0.4"
chrono = { version = "0.4", features = ["serde"] }
egui = "0.26"
egui_extras = { version = "0.26", features = ["file", "svg"] }
image = { version = "0.24" }
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
starfield = { version = "0.1", path = "./crates/starfield", default-features = true }
[target.'cfg(not(target_os = "android"))'.dependencies.eframe]
version = "0.26"
default-features = false
features = ["persistence"]
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.13"
eframe = { version = "0.26", features = ["wgpu", "persistence", "android-native-activity", "default_fonts"] }
egui-winit = { version = "0.26", features = ["clipboard", "links"]}
[target.'cfg(target_family = "wasm")'.dependencies]
#console_error_panic_hook = "0.1.7"
#wasm-logger = "0.2.0"
[profile.release]
opt-level = "z" # Optimize for size.
#opt-level = "s" # Optimize for size (2d try)
lto = true
#codegen-units = 1 # weak compile times, but more optimizations
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.