2024-08-16 19:40:14 +02:00
|
|
|
[package]
|
|
|
|
name = "libpaket"
|
|
|
|
authors.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
version.workspace = true
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
aes-gcm = { version = "0.10.3", optional = true }
|
|
|
|
ed25519-dalek = { version = "2.1.0", optional = true }
|
|
|
|
hmac = { version = "0.12.1", optional = true }
|
|
|
|
num_enum = { version = "0.7", optional = true }
|
|
|
|
|
|
|
|
# TODO: Consolidate?
|
|
|
|
rand = "0.8.5"
|
|
|
|
random-string = "1.1.0"
|
2024-09-21 20:57:59 +02:00
|
|
|
reqwest = { workspace = true }
|
2024-10-02 17:35:44 +02:00
|
|
|
secrecy = { workspace = true}
|
|
|
|
serde = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
2024-08-16 19:40:14 +02:00
|
|
|
serde_repr = { version = "0.1.18", optional = true }
|
2024-08-21 18:18:58 +02:00
|
|
|
serde_ignored = "0.1"
|
2024-08-16 19:40:14 +02:00
|
|
|
url = "2.5.0"
|
|
|
|
base64 = "0.22"
|
|
|
|
|
|
|
|
# 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 = "0.10.8"
|
|
|
|
urlencoding = "2.1.3"
|
2024-10-02 17:35:44 +02:00
|
|
|
uuid = { workspace = true, features = ["serde"], optional = true }
|
2024-08-16 19:40:14 +02:00
|
|
|
|
|
|
|
serde_newtype = "0.1.1"
|
|
|
|
thiserror = "1.0.56"
|
|
|
|
|
|
|
|
[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 = []
|
|
|
|
|
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
|
|
|
]
|