Skip to content

Commit

Permalink
bump: MSRV -> 1.64.0
Browse files Browse the repository at this point in the history
Required as we start to make use of workspace inheritance in the Cargo.toml files for dependencies
  • Loading branch information
emturner committed Jun 26, 2024
1 parent b882bd9 commit 16ba52d
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 20 deletions.
File renamed without changes.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Rust (regular)
if: matrix.sanitizer != 'address'
uses: dtolnay/rust-toolchain@1.61.0
uses: dtolnay/rust-toolchain@1.64.0
with:
target: wasm32-unknown-unknown
- name: Setup Rust (for sanitizer)
Expand All @@ -32,15 +32,15 @@ jobs:
- name: Settings for cargo in Linux
if: matrix.sanitizer == 'address'
run: |
echo '[build]' >> ~/.cargo/config
echo 'rustflags = ["-Z", "sanitizer=address"]' >> ~/.cargo/config
echo 'rustdocflags = ["-Z", "sanitizer=address"]' >> ~/.cargo/config
echo 'target = "x86_64-unknown-linux-gnu"' >> ~/.cargo/config
echo '[build]' >> ~/.cargo/config.toml
echo 'rustflags = ["-Z", "sanitizer=address"]' >> ~/.cargo/config.toml
echo 'rustdocflags = ["-Z", "sanitizer=address"]' >> ~/.cargo/config.toml
echo 'target = "x86_64-unknown-linux-gnu"' >> ~/.cargo/config.toml
- name: Settings for cargo in OSX
if: runner.os == 'macOS'
run: |
echo '[build]' >> ~/.cargo/config
echo 'rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]' >> ~/.cargo/config
echo '[build]' >> ~/.cargo/config.toml
echo 'rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]' >> ~/.cargo/config.toml
- name: APT dependencies
if: runner.os == 'Linux'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.61.0
- uses: dtolnay/rust-toolchain@1.64.0
with:
components: clippy
- name: lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.61.0
- uses: dtolnay/rust-toolchain@1.64.0
with:
components: rustfmt
- name: check formatting
run: cargo fmt --all -- --check
run: cargo fmt --all -- --check
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ parameterized by the lifetime of the input byte slice.
- `PublicKeySignatureVerifier` now requires the explicitly correct signature kind for the given public key.
- Update `blst` dependency to `0.3.12` to improve RISC-V compatibility.
- Update `num-bigint` dependency to `0.4` to improve WASM compatibility.
- Minimum supported rust version bumped to `1.64`.

### Deprecated

Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cargo-features = ["named-profiles"]

[workspace]
resolver = "2"
members = [
"crypto",
"tezos-encoding",
Expand Down
2 changes: 1 addition & 1 deletion crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tezos_crypto_rs"
version = "0.5.2"
authors = ["TriliTech <[email protected]>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.64"
license = "MIT"
keywords = ["tezos"]
categories = ["cryptography::cryptocurrencies"]
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/blake2b.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
use thiserror::Error;

#[cfg_attr(feature = "fuzzing", derive(fuzzcheck::DefaultMutator))]
#[derive(Serialize, Deserialize, Error, Debug, PartialEq, Clone, Copy)]
#[derive(Serialize, Deserialize, Error, Debug, PartialEq, Eq, Clone, Copy)]
pub enum Blake2bError {
#[error("Output digest length must be between 16 and 64 bytes.")]
InvalidLength,
Expand Down
2 changes: 1 addition & 1 deletion crypto/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ unknown_sig!(Secp256k1Signature);
unknown_sig!(P256Signature);

/// Note: see Tezos ocaml lib_crypto/base58.ml
#[derive(Debug, Copy, Clone, PartialEq, strum_macros::AsRefStr)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, strum_macros::AsRefStr)]
pub enum HashType {
// "\087\082\000" (* Net(15) *)
ChainId,
Expand Down
2 changes: 1 addition & 1 deletion tezos-encoding-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tezos_data_encoding_derive"
version = "0.5.2"
authors = ["TriliTech <[email protected]>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.64"
license = "MIT"
keywords = ["tezos"]
categories = ["encoding"]
Expand Down
2 changes: 1 addition & 1 deletion tezos-encoding-derive/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub enum Encoding<'a> {
Dynamic(Option<syn::Expr>, Box<Encoding<'a>>, Span),
}

#[derive(Clone, Copy, Debug, PartialEq, Display, FromStr)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Display, FromStr)]
pub enum PrimitiveEncoding {
Int8,
Uint8,
Expand Down
2 changes: 1 addition & 1 deletion tezos-encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tezos_data_encoding"
version = "0.5.2"
authors = ["TriliTech <[email protected]>"]
edition = "2021"
rust-version = "1.60"
rust-version = "1.64"
license = "MIT"
keywords = ["tezos"]
categories = ["encoding"]
Expand Down
2 changes: 1 addition & 1 deletion tezos-encoding/src/bit_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use bit_vec::BitVec;
use thiserror::Error;

/// An error triggered when working with [Bits].
#[derive(Debug, Error, PartialEq)]
#[derive(Debug, Error, PartialEq, Eq)]
pub enum BitsError {
/// Index is out of range
#[error("index out of range")]
Expand Down
2 changes: 1 addition & 1 deletion tezos-encoding/src/enc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ where
T: ?Sized + BinWriter,
{
fn bin_write(&self, output: &mut Vec<u8>) -> BinResult {
(&**self).bin_write(output)
(**self).bin_write(output)
}
}

Expand Down
4 changes: 2 additions & 2 deletions tezos-encoding/src/nom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub mod error {
}

/// Decoding error kind.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub enum DecodeErrorKind {
/// Nom-specific error.
Nom(ErrorKind),
Expand All @@ -68,7 +68,7 @@ pub mod error {
}

/// Specific bounded encoding kind.
#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum BoundedEncodingKind {
String,
List,
Expand Down

0 comments on commit 16ba52d

Please sign in to comment.