[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" ]