Skip to content

Commit 45ebf55

Browse files
authored
base32ct: remove std feature; use core::error::Error (#2006)
The only reason we had a `std` feature was for `std::error::Error`, but now the trait is available in `core`
1 parent 09dd7d7 commit 45ebf55

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

.github/workflows/base32ct.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
toolchain: ${{ matrix.rust }}
4141
targets: ${{ matrix.target }}
4242
- uses: RustCrypto/actions/cargo-hack-install@master
43-
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features std
43+
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset
4444

4545
minimal-versions:
4646
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4747
with:
48-
working-directory: ${{ github.workflow }}
48+
working-directory: ${{ github.workflow }}
4949

5050
test:
5151
runs-on: ubuntu-latest

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

base32ct/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "base32ct"
3-
version = "0.2.2"
3+
version = "0.3.0-pre"
44
description = """
55
Pure Rust implementation of Base32 (RFC 4648) which avoids any usages of
66
data-dependent branches/LUTs and thereby provides portable "best effort"
@@ -23,7 +23,6 @@ proptest = { version = "1.6", default-features = false, features = ["std"] }
2323

2424
[features]
2525
alloc = []
26-
std = ["alloc"]
2726

2827
[package.metadata.docs.rs]
2928
all-features = true

base32ct/src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ impl fmt::Display for Error {
2424
}
2525
}
2626

27-
#[cfg(feature = "std")]
28-
impl std::error::Error for Error {}
27+
impl core::error::Error for Error {}

base32ct/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
#[cfg(feature = "alloc")]
5151
#[macro_use]
5252
extern crate alloc;
53-
#[cfg(feature = "std")]
54-
extern crate std;
5553

5654
mod alphabet;
5755
mod encoding;

0 commit comments

Comments
 (0)