Skip to content

Commit

Permalink
Unify workspaces (#757)
Browse files Browse the repository at this point in the history
Also removes all uses of `html_root_url` and relevant notes from Cargo.toml.
  • Loading branch information
newpavlov committed Mar 31, 2022
1 parent 81ef0b0 commit 3bd7698
Show file tree
Hide file tree
Showing 32 changed files with 102 additions and 106 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/blobby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/block-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --release --target ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo build --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand All @@ -58,5 +60,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
- run: cargo test --all-features --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test
- run: cargo test --all-features
6 changes: 3 additions & 3 deletions .github/workflows/cmov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
target: ${{ matrix.target }}
override: true
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo build --release --target ${{ matrix.target }}
- run: cargo build --target ${{ matrix.target }}

test:
strategy:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
profile: minimal
override: true
- run: ${{ matrix.deps }}
- run: cargo test --release
- run: cargo test

# Cross-compiled tests
cross:
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
profile: minimal
override: true
- uses: RustCrypto/actions/cross-install@master
- run: cross test --release --target ${{ matrix.target }}
- run: cross test --target ${{ matrix.target }}
18 changes: 13 additions & 5 deletions .github/workflows/cpufeatures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ jobs:
target: ${{ matrix.target }}
override: true
profile: minimal
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: ${{ matrix.deps }}
- run: cargo test --target ${{ matrix.target }} --release
- run: cargo test --target ${{ matrix.target }}

# macOS tests
macos:
Expand All @@ -70,7 +72,9 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: x86_64-apple-darwin
override: true
- run: cargo test --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test

# Windows tests
windows:
Expand All @@ -93,7 +97,9 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
- run: cargo test --target ${{ matrix.target }} --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test --target ${{ matrix.target }}

# Cross-compiled tests
cross:
Expand All @@ -116,5 +122,7 @@ jobs:
target: ${{ matrix.target }}
override: true
profile: minimal
- run: cargo install cross
- run: cross test --target ${{ matrix.target }} --release
- uses: RustCrypto/actions/cross-install@master
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cross test --target ${{ matrix.target }}
8 changes: 6 additions & 2 deletions .github/workflows/dbl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --release --target ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo build --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand All @@ -58,4 +60,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test
8 changes: 6 additions & 2 deletions .github/workflows/hex-literal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --release --target ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo build --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand All @@ -58,4 +60,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test
8 changes: 6 additions & 2 deletions .github/workflows/opaque-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- run: cargo build --release --target ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo build --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand All @@ -58,4 +60,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo test --release
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test
16 changes: 11 additions & 5 deletions .github/workflows/zeroize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
target: ${{ matrix.target }}
override: true
profile: minimal
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo build --no-default-features --target ${{ matrix.target }}

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
Expand All @@ -64,8 +66,10 @@ jobs:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- run: cargo test --release
- run: cargo test --release --features alloc,derive
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cargo test
- run: cargo test --features alloc,derive

# Feature-gated ARM64 SIMD register support (nightly-only)
aarch64:
Expand All @@ -86,5 +90,7 @@ jobs:
profile: minimal
override: true
- uses: RustCrypto/actions/cross-install@master
- run: cross test --release --target ${{ matrix.target }} --features aarch64
- run: cross test --release --target ${{ matrix.target }} --all-features
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
- run: rm ../Cargo.toml
- run: cross test --target ${{ matrix.target }} --features aarch64
- run: cross test --target ${{ matrix.target }} --all-features
27 changes: 21 additions & 6 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
members = [
"blobby",
"block-buffer",
"block-padding",
"collectable",
"cmov",
"cpufeatures",
"dbl",
"hex-literal",
"inout",
"opaque-debug",
"wycheproof2blb",
"zeroize",
"zeroize/derive"
]

[profile.dev]
opt-level = 2
2 changes: 1 addition & 1 deletion blobby/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blobby"
version = "0.3.1" # Also update html_root_url in lib.rs when bumping this
version = "0.3.1"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Iterator over simple binary blob storage"
Expand Down
3 changes: 1 addition & 2 deletions blobby/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
#![no_std]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/blobby/0.3.1"
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]
extern crate alloc;

Expand Down
2 changes: 1 addition & 1 deletion block-buffer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
version = "0.10.2" # Also update html_root_url in lib.rs when bumping this
version = "0.10.2"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Buffer type for block processing of data"
Expand Down
3 changes: 1 addition & 2 deletions block-buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#![no_std]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/block-buffer/0.10.2"
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]
#![warn(missing_docs, rust_2018_idioms)]

Expand Down
6 changes: 1 addition & 5 deletions block-padding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "block-padding"
version = "0.3.2" # Also update html_root_url in lib.rs when bumping this
version = "0.3.2"
description = "Padding and unpadding of messages divided into blocks."
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
Expand All @@ -11,10 +11,6 @@ repository = "https://github.com/RustCrypto/utils"
keywords = ["padding", "pkcs7", "ansix923", "iso7816"]
categories = ["cryptography", "no-std"]

# Hack to allow this crate to coexist with pre-2021 edition crates
[workspace]
members = ["."]

[dependencies]
generic-array = "0.14"

Expand Down
3 changes: 1 addition & 2 deletions block-padding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#![no_std]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/block-padding/0.3.2"
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs, rust_2018_idioms)]
Expand Down
2 changes: 1 addition & 1 deletion cmov/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ repository = "https://github.com/RustCrypto/utils/tree/master/cmov"
categories = ["cryptography", "hardware-support", "no-std"]
keywords = ["crypto", "intrinsics"]
readme = "README.md"
edition = "2018" # Can't bump to 2021 due to pre-1.56 MSRV crates in the same workspace
edition = "2021"
rust-version = "1.59"
2 changes: 1 addition & 1 deletion collectable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "collectable"
version = "0.0.2" # Also update html_root_url in lib.rs when bumping this
version = "0.0.2"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
edition = "2018"
Expand Down
3 changes: 1 addition & 2 deletions collectable/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
#![no_std]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/collectable/0.0.2"
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]

#[cfg(feature = "alloc")]
Expand Down
2 changes: 1 addition & 1 deletion cpufeatures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cpufeatures"
version = "0.2.2" # Also update html_root_url in lib.rs when bumping this
version = "0.2.2"
description = """
Lightweight runtime CPU feature detection for x86/x86_64 and aarch64 with
no_std support and support for mobile targets including Android and iOS
Expand Down
2 changes: 1 addition & 1 deletion dbl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dbl"
version = "0.3.2" # Also update html_root_url in lib.rs when bumping this
version = "0.3.2"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Double operation in Galois Field (GF)"
Expand Down
3 changes: 1 addition & 2 deletions dbl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#![no_std]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/dbl/0.3.2"
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]
#![forbid(unsafe_code)]

Expand Down
2 changes: 1 addition & 1 deletion hex-literal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hex-literal"
version = "0.3.4" # Also update html_root_url in lib.rs when bumping this
version = "0.3.4"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Procedural macro for converting hexadecimal string to byte array at compile time."
Expand Down

0 comments on commit 3bd7698

Please sign in to comment.