Skip to content

Commit 8d68648

Browse files
committed
k12: 2021 edition upgrade; MSRV 1.56
1 parent ca07d23 commit 8d68648

File tree

5 files changed

+15
-29
lines changed

5 files changed

+15
-29
lines changed

Diff for: .github/workflows/k12.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
set-msrv:
2222
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
2323
with:
24-
msrv: 1.41.0
24+
msrv: 1.56.0
2525

2626
build:
2727
needs: set-msrv
@@ -32,7 +32,7 @@ jobs:
3232
- ${{needs.set-msrv.outputs.msrv}}
3333
- stable
3434
target:
35-
# - thumbv7em-none-eabi # TODO: no_std w/o liballoc
35+
- thumbv7em-none-eabi
3636
- wasm32-unknown-unknown
3737
steps:
3838
- uses: actions/checkout@v3

Diff for: Cargo.lock

-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ members = [
77
"fsb",
88
"gost94",
99
"groestl",
10-
"k12",
1110
"md2",
1211
"md4",
1312
"md5",
@@ -24,6 +23,7 @@ members = [
2423
exclude = [
2524
"ascon-hash",
2625
"belt-hash",
26+
"k12",
2727
"skein",
2828
]
2929

Diff for: k12/Cargo.toml

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
[package]
22
name = "k12"
3-
version = "0.2.1"
3+
version = "0.3.0-pre"
44
description = "Pure Rust implementation of the KangarooTwelve hash function"
5-
authors = ["Diggory Hardy <[email protected]>"]
5+
authors = ["RustCrypto Developers", "Diggory Hardy <[email protected]>"]
66
license = "Apache-2.0 OR MIT"
77
readme = "README.md"
8-
edition = "2018"
8+
edition = "2021"
99
documentation = "https://docs.rs/k12"
1010
repository = "https://github.com/RustCrypto/hashes"
1111
keywords = ["crypto", "hash", "digest"]
1212
categories = ["cryptography", "no-std"]
13+
rust-version = "1.56"
1314

1415
[dependencies]
1516
digest = { version = "0.10.7", default-features = false, features = ["core-api"] }
16-
sha3 = "0.10.8"
17+
sha3 = { version = "0.10.8", default-features = false }
1718

1819
[dev-dependencies]
1920
digest = { version = "0.10.7", features = ["alloc", "dev"] }
20-
hex-literal = "0.2.2"
21+
hex-literal = "0.3"
2122

2223
[features]
2324
default = ["std"]
2425
std = ["digest/std"]
26+
27+
# TODO: remove when crate will be part of the root workspace
28+
[profile.dev]
29+
opt-level = 2

Diff for: k12/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function (XOF).
1313

1414
## Minimum Supported Rust Version
1515

16-
Rust **1.41** or higher.
16+
Rust **1.56** or higher.
1717

1818
Minimum supported Rust version can be changed in the future, but it will be
1919
done with a minor version bump.
@@ -45,7 +45,7 @@ dual licensed as above, without any additional terms or conditions.
4545
[docs-image]: https://docs.rs/k12/badge.svg
4646
[docs-link]: https://docs.rs/k12/
4747
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
48-
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg
48+
[rustc-image]: https://img.shields.io/badge/rustc-1.56+-blue.svg
4949
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
5050
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260041-hashes
5151
[build-image]: https://github.com/RustCrypto/hashes/workflows/k12/badge.svg?branch=master

0 commit comments

Comments
 (0)