Skip to content

Commit

Permalink
Migrate to Rust Edition 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
Racum committed Aug 17, 2023
1 parent 25c28d8 commit 0ff46a9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.7.0] - 2023-08-18

### Changed

- Migrated to Rust Edition 2021.

## [1.6.9] - 2023-08-18

### Changed
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "djangohashers"
version = "1.6.9"
version = "1.7.0"
authors = ["Ronaldo Racum <[email protected]>"]
documentation = "https://docs.rs/djangohashers/"
license = "BSD-3-Clause"
Expand All @@ -10,7 +10,7 @@ repository = "https://github.com/racum/rust-djangohashers"
keywords = ["hash", "password", "python", "django", "crypto"]
categories = ["algorithms", "authentication", "cryptography"]
description = "A Rust port of the password primitives used in Django project."
edition = "2018"
edition = "2021"

[lib]
doc = true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add the dependency to your `Cargo.toml`:

```toml
[dependencies]
djangohashers = "^1.6"
djangohashers = "^1.7"
```

Reference and import:
Expand Down Expand Up @@ -75,7 +75,7 @@ Add the dependency to your `Cargo.toml` declaring the feature:

```toml
[dependencies.djangohashers]
version = "^1.6"
version = "^1.7"
features = ["fpbkdf2"]
```

Expand Down
4 changes: 2 additions & 2 deletions src/hashers.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::crypto_utils;
use std::str;

#[cfg(any(feature = "with_argon2"))]
#[cfg(feature = "with_argon2")]
use base64::engine::general_purpose;
#[cfg(any(feature = "with_argon2"))]
#[cfg(feature = "with_argon2")]
use base64::engine::Engine as _;

#[cfg(feature = "with_pbkdf2")]
Expand Down

0 comments on commit 0ff46a9

Please sign in to comment.