paket/libpaket/Cargo.toml

82 lines
1.6 KiB
TOML
Raw Normal View History

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 = { 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?
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 }
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
sha2 = { workspace = true }
urlencoding = { workspace = true }
uuid = { workspace = true, features = ["serde"], optional = true }
2024-08-16 19:40:14 +02:00
serde_newtype = { workspace = true }
thiserror = { workspace = true }
2024-08-16 19:40:14 +02:00
[features]
default = [
"advices",
"locker_all",
"unstable",
2024-08-16 19:40:14 +02:00
]
unstable = []
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"
]