chore(release): v0.2.0
This commit is contained in:
parent
40e7c3ddab
commit
e89ad0b3ea
|
@ -75,7 +75,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crypto-utils"
|
name = "crypto-utils"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"hex",
|
"hex",
|
||||||
|
|
|
@ -7,7 +7,7 @@ keywords = ["crypto", "sha"]
|
||||||
categories = ["cryptography"]
|
categories = ["cryptography"]
|
||||||
homepage = "https://github.com/MedzikUser/rust-crypto-utils"
|
homepage = "https://github.com/MedzikUser/rust-crypto-utils"
|
||||||
repository = "https://github.com/MedzikUser/rust-crypto-utils.git"
|
repository = "https://github.com/MedzikUser/rust-crypto-utils.git"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -18,7 +18,7 @@ your application, simply add it to your project's `Cargo.toml`.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crypto-utils = "0.1.0"
|
crypto-utils = "0.2.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
### How to use?
|
### How to use?
|
||||||
|
@ -63,6 +63,7 @@ Create and decode a token
|
||||||
```rust
|
```rust
|
||||||
use crypto_utils::jsonwebtoken::{Claims, Token};
|
use crypto_utils::jsonwebtoken::{Claims, Token};
|
||||||
|
|
||||||
|
let secret = b"secret";
|
||||||
let user_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
let user_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
|
||||||
|
|
||||||
// create claims
|
// create claims
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies]
|
//! [dependencies]
|
||||||
//! crypto-utils = "0.1.0"
|
//! crypto-utils = "0.2.0"
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ## How to use?
|
//! ## How to use?
|
||||||
|
|
Loading…
Reference in New Issue