Skip to content

Commit

Permalink
Bump MSRV to 1.63.0
Browse files Browse the repository at this point in the history
Because in 1.63.0 this was fixed: rust-lang/rust#83701
  • Loading branch information
LLFourn committed Feb 17, 2024
1 parent aede900 commit 3435eae
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.60.0
- uses: dtolnay/rust-toolchain@1.63.0
- uses: Swatinem/rust-cache@v2
- run: |
cargo update -p proptest --precise "1.2.0"
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

## Unreleased

- Bumped MSRV to 1.63.0 to reduce friction
- Added `share_backup` module in `schnorr_fun`
- Added `arithmetic_macros` to make `g!` and `s!` macros into procedural macros
- Made even `Secret` things `Copy`. See discussion [here](https://github.com/LLFourn/secp256kfun/issues/6#issuecomment-1363752651).

Expand Down
2 changes: 1 addition & 1 deletion ecdsa_fun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "ecdsa_fun"
version = "0.9.0"
authors = ["LLFourn <lloyd.fourn@gmail.com>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.63"
license = "0BSD"
homepage = "https://github.com/LLFourn/secp256kfun/tree/master/ecdsa_fun"
repository = "https://github.com/LLFourn/secp256kfun"
Expand Down
10 changes: 3 additions & 7 deletions schnorr_fun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "schnorr_fun"
version = "0.9.1"
authors = ["LLFourn <lloyd.fourn@gmail.com>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.63"
license = "0BSD"
homepage = "https://github.com/LLFourn/secp256kfun/tree/master/schnorr_fun"
repository = "https://github.com/LLFourn/secp256kfun"
Expand All @@ -15,6 +15,7 @@ keywords = ["bitcoin", "schnorr"]

[dependencies]
secp256kfun = { path = "../secp256kfun", version = "0.9", default-features = false }
bech32 = { version = "0.9", optional = true, default-features = false }

[dev-dependencies]
secp256kfun = { path = "../secp256kfun", version = "0.9", features = ["proptest"] }
Expand Down Expand Up @@ -44,12 +45,7 @@ serde = ["secp256kfun/serde"]
libsecp_compat = ["secp256kfun/libsecp_compat", "libsecp_compat_0_27"]
libsecp_compat_0_27 = ["secp256kfun/libsecp_compat_0_27"]
proptest = ["secp256kfun/proptest"]
share_backup = ["bech32"]

[dependencies.bech32]
version = "0.9"
optional = true
default-features = false
share_backup = ["dep:bech32"]

[package.metadata.docs.rs]
all-features = true
Expand Down
3 changes: 1 addition & 2 deletions schnorr_fun/src/share_backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@
use alloc::{fmt, string::String, vec::Vec};
use bech32::{u5, FromBase32, ToBase32, Variant::Bech32m};
use core::{num::NonZeroU32, str::FromStr};
use secp256kfun::marker::ZeroChoice;
use secp256kfun::{
digest::{generic_array::typenum::U32, Digest},
g,
hash::HashAdd,
marker::{Normal, Public},
marker::*,
poly, Point, Scalar, G,
};

Expand Down
2 changes: 1 addition & 1 deletion secp256kfun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/LLFourn/secp256kfun"
documentation = "https://docs.rs/secp256kfun"
description = "A mid-level secp256k1 library optimized for fun!"
edition = "2021"
rust-version = "1.60"
rust-version = "1.63"
categories = ["cryptography", "cryptography::cryptocurrencies"]
readme = "README.md"
keywords = ["bitcoin", "secp256k1"]
Expand Down
2 changes: 1 addition & 1 deletion secp256kfun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ assert_eq!(commitment, pedersen_commit(A, &B, &r, &x));

## MSRV

Minimum supported rust version is `v1.60`. Technically `rustc` only needs to be `v1.56` but we need features from `v.1.60` of cargo.
Minimum supported rust version is `v1.63`.

## LICENSE

Expand Down
2 changes: 1 addition & 1 deletion sigma_fun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "sigma_fun"
version = "0.6.0"
authors = ["LLFourn <lloyd.fourn@gmail.com>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.63"
license = "0BSD"
description = "A framework for making Sigma protocols fun!"
homepage = "https://github.com/LLFourn/secp256kfun/tree/master/sigma_fun"
Expand Down

0 comments on commit 3435eae

Please sign in to comment.