Swap sasl crate from sha-1 crate -> sha1 crate

sha-1 has been deprecated in favor of sha1 and has an identical API.
This commit is contained in:
Lucas Kent 2024-05-13 13:03:20 +10:00
parent 384b366f5f
commit f4c3238798

View file

@ -16,13 +16,13 @@ gitlab = { repository = "xmpp-rs/xmpp-rs" }
[features] [features]
default = ["scram", "anonymous"] default = ["scram", "anonymous"]
scram = ["base64", "getrandom", "sha-1", "sha2", "hmac", "pbkdf2"] scram = ["base64", "getrandom", "sha1", "sha2", "hmac", "pbkdf2"]
anonymous = ["getrandom"] anonymous = ["getrandom"]
[dependencies] [dependencies]
base64 = { version = "0.22", optional = true } base64 = { version = "0.22", optional = true }
getrandom = { version = "0.2", optional = true } getrandom = { version = "0.2", optional = true }
sha-1 = { version = "0.10", optional = true } sha1 = { version = "0.10", optional = true }
sha2 = { version = "0.10", optional = true } sha2 = { version = "0.10", optional = true }
hmac = { version = "0.12", optional = true } hmac = { version = "0.12", optional = true }
pbkdf2 = { version = "0.12", default-features = false, optional = true } pbkdf2 = { version = "0.12", default-features = false, optional = true }