Skip to content

Commit

Permalink
chore: upgrade to Rust edition 2021 and set MSRV (#130)
Browse files Browse the repository at this point in the history
The minimum supported Rust version is set to 1.60 due to the
`parity-scale-codec` dependency.

BREAKING CHANGE: Rust edition 2021 is now used
  • Loading branch information
vmx authored Dec 19, 2022
1 parent 8e96447 commit 91fd35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ authors = ["Friedel Ziegelmayer <dignifiedquire@gmail.com>"]
keywords = ["ipld", "ipfs", "cid", "multihash", "multiformats"]
license = "MIT"
readme = "README.md"
edition = "2018"
edition = "2021"
rust-version = "1.60"

[features]
default = ["std", "multihash/default"]
std = ["multihash/std", "unsigned-varint/std", "alloc", "multibase/std"]
std = ["multihash/std", "unsigned-varint/std", "alloc", "multibase/std", "serde/std"]
alloc = ["multibase", "multihash/alloc", "core2/alloc", "serde/alloc"]
arb = ["quickcheck", "rand", "multihash/arb", "multihash/sha2", "arbitrary"]
scale-codec = ["parity-scale-codec", "multihash/scale-codec"]
Expand Down
2 changes: 0 additions & 2 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ impl<'de, const SIZE: usize> de::Deserialize<'de> for CidGeneric<SIZE> {

#[cfg(test)]
mod tests {
use std::convert::TryFrom;

use crate::CidGeneric;

#[test]
Expand Down

0 comments on commit 91fd35e

Please sign in to comment.