Skip to content

Commit

Permalink
crypto: remove crypto-mac crate dependency (#1075)
Browse files Browse the repository at this point in the history
It's been merged into `digest`
  • Loading branch information
tarcieri authored Aug 10, 2022
1 parent 57e68a6 commit 41d7b5c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
profile: minimal
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
--features aead,cipher,mac,digest,elliptic-curve,signature,universal-hash
--features aead,cipher,digest,elliptic-curve,signature,universal-hash

# TODO: use the reusable workflow after this crate will be part of the
# toot workspace
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ rust-version = "1.57"
[dependencies]
aead = { version = "0.5", optional = true, path = "../aead" }
cipher = { version = "0.4", optional = true }
digest = { version = "0.10", optional = true }
digest = { version = "0.10", optional = true, features = ["mac"] }
elliptic-curve = { version = "0.12", optional = true, path = "../elliptic-curve" }
mac = { version = "0.11", package = "crypto-mac", optional = true }
password-hash = { version = "0.4", optional = true, path = "../password-hash" }
signature = { version = "1.5", optional = true, default-features = false, path = "../signature" }
universal-hash = { version = "0.5", optional = true, path = "../universal-hash" }
Expand All @@ -30,7 +29,6 @@ std = [
"cipher/std",
"digest/std",
"elliptic-curve/std",
"mac/std",
"password-hash/std",
"signature/std",
"universal-hash/std"
Expand Down
4 changes: 0 additions & 4 deletions crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
//! | [`cipher`](https://docs.rs/cipher) | `cipher` | Block and stream ciphers (i.e. low-level symmetric encryption) |
//! | [`digest`](https://docs.rs/digest) | `digest` | Cryptographic hash functions |
//! | [`elliptic_curve`](https://docs.rs/elliptic-curve) | `elliptic-curve` | Elliptic curve cryptography |
//! | [`mac`](https://docs.rs/crypto-mac) | `mac` | Message Authentication Codes (i.e. symmetric message authentication) |
//! | [`password_hash`](https://docs.rs/password-hash) | `password-hash` | Password hashing functions |
//! | [`signature`](https://docs.rs/signature) | `signature` | Digital signatures (i.e. public key-based message authentication) |
//! | [`universal_hash`](https://docs.rs/universal-hash) | `universal‑hash` | Universal Hash Functions (used to build MACs) |
Expand All @@ -56,9 +55,6 @@ pub use digest;
#[cfg(feature = "elliptic-curve")]
pub use elliptic_curve;

#[cfg(feature = "mac")]
pub use mac;

#[cfg(feature = "password-hash")]
pub use password_hash;

Expand Down

0 comments on commit 41d7b5c

Please sign in to comment.