preparations to push to crates.io
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
diff --git a/Cargo.toml b/Cargo.toml
index 896cd94..3de3583 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,15 @@
[package]
-name = "totp"
+name = "totp-rs"
version = "0.2.0"
authors = ["Cleo Rebert <cleo.rebert@gmail.com>"]
edition = "2018"
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+readme = "README.md"
+license = "MIT"
+description = "This library permits the creation of 2FA authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits."
+repository = "https://github.com/constantoine/totp-rs"
+homepage = "https://github.com/constantoine/totp-rs"
+keywords = ["authentification", "2fa", "totp", "hmac"]
+categories = ["authentication", "web-programming"]
[dependencies]
ring = "0.16.12"
diff --git a/README.md b/README.md
index 23ae2d3..7ae2670 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
# totp-rs
-This library permits the creation of authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits!
+This library permits the creation of 2FA authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits!
## How to use
Add it to your `Cargo.toml`:
```toml
-[dependencies.totp]
-git = "https://github.com/constantoine/totp-rs"
+[dependencies]
+totp-rs = "0.2.0"
```
diff --git a/src/lib.rs b/src/lib.rs
index 559a384..a224487 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,4 @@
-//! This library permits the creation of authentification tokens per TOTP, the verification of said tokens, with configurable time skew, and validity time of each toke, algorithm and number of digits!
+//! This library permits the creation of 2FA authentification tokens per TOTP, the verification of said tokens, with configurable time skew, validity time of each token, algorithm and number of digits!
use base32;
use ring::hmac;