# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "otp-std" version = "0.1.0" authors = ["nekitdev "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Generating and checking one-time passwords." documentation = "https://docs.rs/otp-std" readme = "README.md" keywords = [ "otp", "totp", "hotp", ] categories = [ "authentication", "command-line-utilities", "web-programming", ] license = "MIT" repository = "https://github.com/nekitdev/otp-std" [lib] name = "otp_std" path = "src/lib.rs" [dependencies.base32] version = "0.5.1" [dependencies.bon] version = "3.0.0" [dependencies.constant_time_eq] version = "0.3.1" [dependencies.hmac] version = "0.12.1" [dependencies.miette] version = "7.2.0" [dependencies.rand] version = "0.8.5" optional = true [dependencies.serde] version = "1.0.213" features = ["derive"] optional = true [dependencies.sha1] version = "0.10.6" [dependencies.sha2] version = "0.10.8" optional = true [dependencies.thiserror] version = "2.0.0" [dependencies.url] version = "2.5.2" optional = true [dependencies.urlencoding] version = "2.1.3" optional = true [features] auth = [ "dep:url", "dep:urlencoding", ] default = [ "generate-secret", "auth", ] generate-secret = ["dep:rand"] unsafe-length = []