jane400
1b3b773f80
Features: - meson - (almost) all strings are localized - relm4_icons no longer used - default.nix updated but not tested - updated dependencies - unused for now: paket-utils, paket/locker - build-aux/checks.sh now enforced - fixups in libpaket/tracking parsing - libpaket: RegTokenDecodeError instead of generic DecodeError - moving dependency versions to workspace Cargo.toml - default.nix adjusted - README.md added - dependency: relm4 version pinned to include fixes
81 lines
1.6 KiB
TOML
81 lines
1.6 KiB
TOML
[package]
|
|
name = "libpaket"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
version.workspace = true
|
|
|
|
[dependencies]
|
|
aes-gcm = { workspace = true, optional = true }
|
|
ed25519-dalek = { workspace = true, optional = true }
|
|
hmac = { workspace = true, optional = true }
|
|
num_enum = { workspace = true, optional = true }
|
|
|
|
# TODO: Consolidate?
|
|
rand = { workspace = true }
|
|
random-string = { workspace = true }
|
|
reqwest = { workspace = true }
|
|
secrecy = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde_repr = { workspace = true, optional = true }
|
|
serde_ignored = { workspace = true }
|
|
url = { workspace = true }
|
|
base64 = { workspace = true }
|
|
|
|
# TODO: consider splitting login.rs refresh_token and authorization_token
|
|
# (sha2 and urlencoding only used with authorization_token)
|
|
# sha2 also used in briefankuendigung and packstation_register_regtoken
|
|
sha2 = { workspace = true }
|
|
urlencoding = { workspace = true }
|
|
uuid = { workspace = true, features = ["serde"], optional = true }
|
|
|
|
serde_newtype = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
[features]
|
|
default = [
|
|
"advices",
|
|
"locker_all",
|
|
"unstable",
|
|
]
|
|
|
|
unstable = []
|
|
|
|
private_tests = []
|
|
|
|
advices = [
|
|
#"dep:sha2",
|
|
"dep:uuid",
|
|
"dep:aes-gcm",
|
|
]
|
|
|
|
locker_all = [
|
|
"locker_register_all",
|
|
"locker_ble",
|
|
]
|
|
|
|
locker_base = [
|
|
"dep:uuid",
|
|
"dep:serde_repr",
|
|
"dep:ed25519-dalek",
|
|
]
|
|
|
|
locker_ble = [
|
|
"locker_base",
|
|
"dep:num_enum",
|
|
]
|
|
|
|
locker_register_all = [
|
|
"locker_register_regtoken",
|
|
]
|
|
|
|
locker_register_base = [
|
|
"locker_base",
|
|
"dep:hmac",
|
|
#"dep:sha2",
|
|
]
|
|
|
|
locker_register_regtoken = [
|
|
"locker_register_base"
|
|
]
|