Skip to content

Commit b6af5e5

Browse files
committed
Update version/edition
1 parent 8d2cdb5 commit b6af5e5

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ on:
77
jobs:
88
test:
99
name: test
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
rust: [1.56.0, stable]
13+
rust: [1.57.0, stable]
1414

1515
include:
16-
- rust: 1.56.0
16+
- rust: 1.57.0
1717
test_no_std: false
18-
- rust: 1.56.0
18+
- rust: 1.57.0
1919
test_no_std: true
2020
- rust: stable
2121
test_no_std: true
2222
fail-fast: false
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2727

2828
- name: Install Rust
2929
uses: actions-rs/toolchain@v1
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@master
50+
uses: actions/checkout@v3
5151

5252
- uses: actions-rs/toolchain@v1
5353
with:
@@ -64,13 +64,13 @@ jobs:
6464
runs-on: ubuntu-latest
6565
steps:
6666
- name: Checkout
67-
uses: actions/checkout@master
67+
uses: actions/checkout@v3
6868

6969
- uses: actions-rs/toolchain@v1
7070
with:
71-
profile: minimal
72-
toolchain: stable
71+
toolchain: 1.57.0
7372
override: true
73+
components: clippy
7474

7575
- uses: actions-rs/cargo@v1
7676
with:

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "bcrypt"
3-
version = "0.13.0"
3+
version = "0.14.0"
44
authors = ["Vincent Prouillet <hello@prouilletvincent.com>"]
55
license = "MIT"
66
readme = "README.md"
77
description = "Easily hash and verify passwords using bcrypt"
88
homepage = "https://github.com/Keats/rust-bcrypt"
99
repository = "https://github.com/Keats/rust-bcrypt"
1010
keywords = ["bcrypt", "password", "web", "hash"]
11-
edition = "2018"
11+
edition = "2021"
1212
include = ["src/**/*", "LICENSE", "README.md"]
1313

1414
[features]

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
Add the following to Cargo.toml:
99

1010
```toml
11-
bcrypt = "0.13"
11+
bcrypt = "0.14"
1212
```
1313

14-
The minimum Rust version is 1.56.0.
14+
The minimum Rust version is 1.57.0.
1515

1616
## Usage
1717
The crate makes 3 things public: `DEFAULT_COST`, `hash`, `verify`.
@@ -48,6 +48,7 @@ for new projects.
4848

4949
## Changelog
5050

51+
* 0.14.0: use `subtle` crate for constant time comparison, update base64 and bump to 2021 edition
5152
* 0.13.0: make zeroize dep opt-out and use fixed salt length
5253
* 0.12.1: zero vec containing password in the hashing function before returning the hash
5354
* 0.12.0: allow null bytes in password

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ pub fn hash_with_salt<P: AsRef<[u8]>>(
194194
/// Verify that a password is equivalent to the hash provided
195195
#[cfg(any(feature = "alloc", feature = "std"))]
196196
pub fn verify<P: AsRef<[u8]>>(password: P, hash: &str) -> BcryptResult<bool> {
197-
use core::convert::TryInto;
198197
use subtle::ConstantTimeEq;
199198

200199
let parts = split_hash(hash)?;

0 commit comments

Comments
 (0)