2024-08-16 19:40:14 +02:00
|
|
|
[package]
|
|
|
|
name = "libpaket"
|
|
|
|
authors.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
version.workspace = true
|
|
|
|
|
|
|
|
[dependencies]
|
2025-01-22 01:53:32 +01:00
|
|
|
aes-gcm = { workspace = true, optional = true }
|
|
|
|
ed25519-dalek = { workspace = true, optional = true }
|
|
|
|
hmac = { workspace = true, optional = true }
|
|
|
|
num_enum = { workspace = true, optional = true }
|
2024-08-16 19:40:14 +02:00
|
|
|
|
|
|
|
# TODO: Consolidate?
|
2025-01-22 01:53:32 +01:00
|
|
|
rand = { workspace = true }
|
|
|
|
random-string = { workspace = true }
|
2024-09-21 20:57:59 +02:00
|
|
|
reqwest = { workspace = true }
|
2025-01-22 01:53:32 +01:00
|
|
|
secrecy = { workspace = true }
|
2024-10-02 17:35:44 +02:00
|
|
|
serde = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
2025-01-22 01:53:32 +01:00
|
|
|
serde_repr = { workspace = true, optional = true }
|
|
|
|
serde_ignored = { workspace = true }
|
|
|
|
url = { workspace = true }
|
|
|
|
base64 = { workspace = true }
|
2024-08-16 19:40:14 +02:00
|
|
|
|
|
|
|
# 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
|
2025-01-22 01:53:32 +01:00
|
|
|
sha2 = { workspace = true }
|
|
|
|
urlencoding = { workspace = true }
|
2024-10-02 17:35:44 +02:00
|
|
|
uuid = { workspace = true, features = ["serde"], optional = true }
|
2024-08-16 19:40:14 +02:00
|
|
|
|
2025-01-22 01:53:32 +01:00
|
|
|
serde_newtype = { workspace = true }
|
|
|
|
thiserror = { workspace = true }
|
2024-08-16 19:40:14 +02:00
|
|
|
|
|
|
|
[features]
|
|
|
|
default = [
|
|
|
|
"advices",
|
2024-08-21 18:22:41 +02:00
|
|
|
"locker_all",
|
|
|
|
"unstable",
|
2024-08-16 19:40:14 +02:00
|
|
|
]
|
|
|
|
|
2024-08-21 18:22:41 +02:00
|
|
|
unstable = []
|
|
|
|
|
2025-01-22 01:53:32 +01:00
|
|
|
private_tests = []
|
|
|
|
|
2024-08-16 19:40:14 +02:00
|
|
|
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"
|
2024-08-21 18:22:41 +02:00
|
|
|
]
|