2022-07-30 21:33:31 +01:00
|
|
|
[package]
|
2023-02-24 02:07:17 +00:00
|
|
|
name = "powertools"
|
2023-04-03 03:47:59 +01:00
|
|
|
version = "1.3.1"
|
2022-07-30 21:33:31 +01:00
|
|
|
edition = "2021"
|
2023-01-11 01:54:33 +00:00
|
|
|
authors = ["NGnius (Graham) <ngniusness@gmail.com>"]
|
|
|
|
description = "Backend (superuser) functionality for PowerTools"
|
|
|
|
license = "GPL-3.0-only"
|
|
|
|
repository = "https://github.com/NGnius/PowerTools"
|
|
|
|
keywords = ["utility", "power-management", "root", "decky"]
|
|
|
|
readme = "../README.md"
|
2022-07-30 21:33:31 +01:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2023-02-22 02:28:59 +00:00
|
|
|
usdpl-back = { version = "0.10.1", features = ["blocking"] }#, path = "../../usdpl-rs/usdpl-back"}
|
2022-07-30 21:33:31 +01:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
|
|
|
|
2022-11-10 03:09:05 +00:00
|
|
|
# async
|
|
|
|
tokio = { version = "*", features = ["time"] }
|
|
|
|
async-trait = { version = "0.1" }
|
|
|
|
|
2022-07-30 21:33:31 +01:00
|
|
|
# logging
|
|
|
|
log = "0.4"
|
|
|
|
simplelog = "0.12"
|
2022-08-10 01:56:22 +01:00
|
|
|
|
2022-12-03 02:12:13 +00:00
|
|
|
# limits & driver functionality
|
2023-03-31 23:16:20 +01:00
|
|
|
limits_core = { version = "1.0.0", path = "./limits_core" }
|
2022-12-03 02:12:13 +00:00
|
|
|
regex = "1"
|
2023-03-23 02:15:36 +00:00
|
|
|
libryzenadj = { version = "0.12" }
|
2022-12-03 02:12:13 +00:00
|
|
|
# ureq's tls feature does not like musl targets
|
|
|
|
ureq = { version = "2.5", features = ["json", "gzip", "brotli", "charset"], default-features = false, optional = true }
|
|
|
|
|
2022-08-10 01:56:22 +01:00
|
|
|
[features]
|
2023-02-22 02:28:59 +00:00
|
|
|
default = ["online", "decky"]
|
2022-08-10 01:56:22 +01:00
|
|
|
decky = ["usdpl-back/decky"]
|
|
|
|
crankshaft = ["usdpl-back/crankshaft"]
|
|
|
|
encrypt = ["usdpl-back/encrypt"]
|
2022-12-03 02:12:13 +00:00
|
|
|
online = ["ureq"]
|
2023-02-20 17:04:44 +00:00
|
|
|
dev_stuff = []
|
2022-09-05 19:24:01 +01:00
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
debug = false
|
|
|
|
strip = true
|
|
|
|
lto = true
|
2022-12-05 23:51:49 +00:00
|
|
|
codegen-units = 1
|
|
|
|
|
|
|
|
[profile.docker]
|
|
|
|
inherits = "release"
|
|
|
|
debug = false
|
|
|
|
strip = true
|
|
|
|
lto = "thin"
|
|
|
|
codegen-units = 16
|
|
|
|
opt-level = 2
|
|
|
|
debug-assertions = false
|
|
|
|
overflow-checks = false
|