Skip to content

Commit 3bd7698

Browse files
authored
Unify workspaces (#757)
Also removes all uses of `html_root_url` and relevant notes from Cargo.toml.
1 parent 81ef0b0 commit 3bd7698

File tree

32 files changed

+102
-106
lines changed

32 files changed

+102
-106
lines changed

.github/workflows/blobby.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
profile: minimal
3333
toolchain: ${{ matrix.rust }}
3434
override: true
35-
- run: cargo test --release
35+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
36+
- run: rm ../Cargo.toml
37+
- run: cargo test
3638

3739
minimal-versions:
3840
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master

.github/workflows/block-buffer.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
toolchain: ${{ matrix.rust }}
3737
target: ${{ matrix.target }}
3838
override: true
39-
- run: cargo build --release --target ${{ matrix.target }}
39+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
40+
- run: rm ../Cargo.toml
41+
- run: cargo build --target ${{ matrix.target }}
4042

4143
minimal-versions:
4244
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
@@ -58,5 +60,7 @@ jobs:
5860
profile: minimal
5961
toolchain: ${{ matrix.rust }}
6062
override: true
61-
- run: cargo test --release
62-
- run: cargo test --all-features --release
63+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
64+
- run: rm ../Cargo.toml
65+
- run: cargo test
66+
- run: cargo test --all-features

.github/workflows/cmov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
target: ${{ matrix.target }}
4343
override: true
4444
- uses: RustCrypto/actions/cargo-hack-install@master
45-
- run: cargo build --release --target ${{ matrix.target }}
45+
- run: cargo build --target ${{ matrix.target }}
4646

4747
test:
4848
strategy:
@@ -80,7 +80,7 @@ jobs:
8080
profile: minimal
8181
override: true
8282
- run: ${{ matrix.deps }}
83-
- run: cargo test --release
83+
- run: cargo test
8484

8585
# Cross-compiled tests
8686
cross:
@@ -110,4 +110,4 @@ jobs:
110110
profile: minimal
111111
override: true
112112
- uses: RustCrypto/actions/cross-install@master
113-
- run: cross test --release --target ${{ matrix.target }}
113+
- run: cross test --target ${{ matrix.target }}

.github/workflows/cpufeatures.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ jobs:
5050
target: ${{ matrix.target }}
5151
override: true
5252
profile: minimal
53+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
54+
- run: rm ../Cargo.toml
5355
- run: ${{ matrix.deps }}
54-
- run: cargo test --target ${{ matrix.target }} --release
56+
- run: cargo test --target ${{ matrix.target }}
5557

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

7579
# Windows tests
7680
windows:
@@ -93,7 +97,9 @@ jobs:
9397
toolchain: ${{ matrix.toolchain }}
9498
target: ${{ matrix.target }}
9599
override: true
96-
- run: cargo test --target ${{ matrix.target }} --release
100+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
101+
- run: rm ../Cargo.toml
102+
- run: cargo test --target ${{ matrix.target }}
97103

98104
# Cross-compiled tests
99105
cross:
@@ -116,5 +122,7 @@ jobs:
116122
target: ${{ matrix.target }}
117123
override: true
118124
profile: minimal
119-
- run: cargo install cross
120-
- run: cross test --target ${{ matrix.target }} --release
125+
- uses: RustCrypto/actions/cross-install@master
126+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
127+
- run: rm ../Cargo.toml
128+
- run: cross test --target ${{ matrix.target }}

.github/workflows/dbl.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
toolchain: ${{ matrix.rust }}
3737
target: ${{ matrix.target }}
3838
override: true
39-
- run: cargo build --release --target ${{ matrix.target }}
39+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
40+
- run: rm ../Cargo.toml
41+
- run: cargo build --target ${{ matrix.target }}
4042

4143
minimal-versions:
4244
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
@@ -58,4 +60,6 @@ jobs:
5860
profile: minimal
5961
toolchain: ${{ matrix.rust }}
6062
override: true
61-
- run: cargo test --release
63+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
64+
- run: rm ../Cargo.toml
65+
- run: cargo test

.github/workflows/hex-literal.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
toolchain: ${{ matrix.rust }}
3737
target: ${{ matrix.target }}
3838
override: true
39-
- run: cargo build --release --target ${{ matrix.target }}
39+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
40+
- run: rm ../Cargo.toml
41+
- run: cargo build --target ${{ matrix.target }}
4042

4143
minimal-versions:
4244
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
@@ -58,4 +60,6 @@ jobs:
5860
profile: minimal
5961
toolchain: ${{ matrix.rust }}
6062
override: true
61-
- run: cargo test --release
63+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
64+
- run: rm ../Cargo.toml
65+
- run: cargo test

.github/workflows/opaque-debug.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
toolchain: ${{ matrix.rust }}
3737
target: ${{ matrix.target }}
3838
override: true
39-
- run: cargo build --release --target ${{ matrix.target }}
39+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
40+
- run: rm ../Cargo.toml
41+
- run: cargo build --target ${{ matrix.target }}
4042

4143
minimal-versions:
4244
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
@@ -58,4 +60,6 @@ jobs:
5860
profile: minimal
5961
toolchain: ${{ matrix.rust }}
6062
override: true
61-
- run: cargo test --release
63+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
64+
- run: rm ../Cargo.toml
65+
- run: cargo test

.github/workflows/zeroize.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
target: ${{ matrix.target }}
3939
override: true
4040
profile: minimal
41-
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
41+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
42+
- run: rm ../Cargo.toml
43+
- run: cargo build --no-default-features --target ${{ matrix.target }}
4244

4345
minimal-versions:
4446
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
@@ -64,8 +66,10 @@ jobs:
6466
toolchain: ${{ matrix.toolchain }}
6567
override: true
6668
profile: minimal
67-
- run: cargo test --release
68-
- run: cargo test --release --features alloc,derive
69+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
70+
- run: rm ../Cargo.toml
71+
- run: cargo test
72+
- run: cargo test --features alloc,derive
6973

7074
# Feature-gated ARM64 SIMD register support (nightly-only)
7175
aarch64:
@@ -86,5 +90,7 @@ jobs:
8690
profile: minimal
8791
override: true
8892
- uses: RustCrypto/actions/cross-install@master
89-
- run: cross test --release --target ${{ matrix.target }} --features aarch64
90-
- run: cross test --release --target ${{ matrix.target }} --all-features
93+
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
94+
- run: rm ../Cargo.toml
95+
- run: cross test --target ${{ matrix.target }} --features aarch64
96+
- run: cross test --target ${{ matrix.target }} --all-features

Cargo.lock

Lines changed: 21 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
members = [
33
"blobby",
44
"block-buffer",
5+
"block-padding",
56
"collectable",
67
"cmov",
78
"cpufeatures",
89
"dbl",
910
"hex-literal",
11+
"inout",
1012
"opaque-debug",
1113
"wycheproof2blb",
1214
"zeroize",
1315
"zeroize/derive"
1416
]
17+
18+
[profile.dev]
19+
opt-level = 2

0 commit comments

Comments
 (0)