-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
105 lines (88 loc) · 2.4 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "codid"
publish = false
license = "MIT"
rust-version = "1.76.0"
readme = "README.md"
repository = "https://github.com/Cosmo-CoDiOS/codid"
description = "Rust implementation of the CoDi interface for Linux and Android based ROMs"
categories = ["aarch64", "daemon", "planet-computers"]
version = "0.1.0"
authors = ["Dom Rodriguez <[email protected]>"]
keywords = ["cover-display", "codi", "planet-computers"]
edition = "2021"
[[bin]]
name = "codid"
required-features = ["linux"]
[[bin]]
name = "codictl"
required-features = ["linux"]
[lib]
name = "codid"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib", "staticlib"] # For Android - Java/Kotlin JNI.
[features]
default = []
stock-codi = ["codi_stock_protocol"]
codios-codi = ["codi_os_protocol", "codi_boot_protocol"]
linux = ["zbus", "zvariant", "ical"]
android = ["android_logger"]
ubports = ["linux"]
gemian = ["linux"]
droidian = ["linux"]
postmarketos = ["linux"]
sailfishos = ["linux"]
nixos = ["linux"]
[dependencies]
futures = "0.3.30"
config = "0.14.0"
clap = { version = "4.5.4", features = ["string", "color"] }
log = { version = "0.4.21" }
env_logger = "0.11.3"
lazy_static = "1.4.0"
dirs = "5.0.1"
thiserror = "1.0.61"
anyhow = "1.0.86"
zvariant = { version = "4.1.1", optional = true }
zbus = { version = "4.2.2", optional = true }
tokio = { version = "1.38.0", features = ["fs", "io-util", "io-std", "rt", "process", "rt-multi-thread", "signal", "sync", "time"] }
ical = { version = "0.11.0", optional = true }
tonic = "0.11.0"
rustix = "0.38.34"
[dependencies.codi_os_protocol]
git = "https://github.com/Cosmo-CoDiOS/codi_protocols"
branch = "main"
optional = true
[dependencies.codi_protocol_common]
git = "https://github.com/Cosmo-CoDiOS/codi_protocols"
branch = "main"
[dependencies.codi_stock_protocol]
git = "https://github.com/Cosmo-CoDiOS/codi_protocols"
branch = "main"
optional = true
[dependencies.codi_boot_protocol]
git = "https://github.com/Cosmo-CoDiOS/codi_protocols"
branch = "main"
optional = true
[target.'cfg(target_os = "android")'.dependencies]
android_logger = { version = "0.13", optional = true }
[profile.dev]
lto = true
opt-level = "z"
codegen-units = 1
debug = true
strip = false
[profile.dev.package."*"]
codegen-units = 1
opt-level = "z"
debug = true
[profile.release]
lto = true
opt-level = "z"
codegen-units = 1
debug = false
strip = true
[profile.release.package."*"]
codegen-units = 1
opt-level = "s"
debug = false