Switch from the deprecated rand-os crate to getrandom.

This commit is contained in:
Emmanuel Gil Peyrot 2020-02-25 22:32:03 +01:00
commit 21e9c8e660
3 changed files with 5 additions and 9 deletions

View file

@ -16,11 +16,11 @@ gitlab = { repository = "lumi/sasl-rs" }
[features]
default = ["scram"]
scram = ["base64", "rand_os", "sha-1", "sha2", "hmac", "pbkdf2"]
scram = ["base64", "getrandom", "sha-1", "sha2", "hmac", "pbkdf2"]
[dependencies]
base64 = { version = "0.10", optional = true }
rand_os = { version = "0.1", optional = true }
getrandom = { version = "0.1", optional = true }
sha-1 = { version = "0.8", optional = true }
sha2 = { version = "0.8", optional = true }
hmac = { version = "0.7", optional = true }