@@ -49,17 +49,17 @@ jobs:
4949 cargo build --target ${{ matrix.target }}
5050 cargo build --target ${{ matrix.target }} --features hazmat
5151 - env :
52- RUSTFLAGS : " -Dwarnings --cfg aes_force_soft "
52+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="soft" '
5353 run : |
5454 cargo build --target ${{ matrix.target }}
5555 cargo build --target ${{ matrix.target }} --features hazmat
5656 - env :
57- RUSTFLAGS : " -Dwarnings --cfg aes_compact "
57+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend_soft="compact" '
5858 run : |
5959 cargo build --target ${{ matrix.target }}
6060 cargo build --target ${{ matrix.target }} --features hazmat
6161 - env :
62- RUSTFLAGS : " -Dwarnings --cfg aes_force_soft --cfg aes_compact "
62+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="soft" --cfg aes_backend_soft="compact" '
6363 run : |
6464 cargo build --target ${{ matrix.target }}
6565 cargo build --target ${{ matrix.target }} --features hazmat
@@ -112,7 +112,7 @@ jobs:
112112 include :
113113 - target : x86_64-unknown-linux-gnu
114114 rust : stable
115- RUSTFLAGS : " -Dwarnings --cfg aes_avx256 "
115+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="avx256" '
116116 env :
117117 CARGO_INCREMENTAL : 0
118118 RUSTFLAGS : ${{ matrix.RUSTFLAGS }}
@@ -150,10 +150,7 @@ jobs:
150150 include :
151151 - target : x86_64-unknown-linux-gnu
152152 rust : stable
153- RUSTFLAGS : " -Dwarnings --cfg aes_avx512"
154- - target : x86_64-unknown-linux-gnu
155- rust : stable
156- RUSTFLAGS : " -Dwarnings --cfg aes_avx256 --cfg aes_avx512"
153+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="avx512"'
157154 env :
158155 CARGO_INCREMENTAL : 0
159156 RUSTFLAGS : ${{ matrix.RUSTFLAGS }}
@@ -214,11 +211,11 @@ jobs:
214211 - run : cargo test --target ${{ matrix.target }} --features hazmat
215212 - run : cargo test --target ${{ matrix.target }} --all-features
216213
217- # Tests for the portable software backend (i.e. `aes_force_soft `-only)
214+ # Tests for the portable software backend (i.e. `aes_backend="soft" `-only)
218215 soft :
219216 runs-on : ubuntu-latest
220217 env :
221- RUSTFLAGS : " -Dwarnings --cfg aes_force_soft "
218+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="soft" '
222219 strategy :
223220 matrix :
224221 include :
@@ -280,17 +277,17 @@ jobs:
280277 cross test --package aes --target ${{ matrix.target }}
281278 cross test --package aes --target ${{ matrix.target }} --features hazmat
282279 - env :
283- RUSTFLAGS : " -Dwarnings --cfg aes_force_soft "
280+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="soft" '
284281 run : |
285282 cross test --package aes --target ${{ matrix.target }}
286283 cross test --package aes --target ${{ matrix.target }} --features hazmat
287284 - env :
288- RUSTFLAGS : " -Dwarnings --cfg aes_compact "
285+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend_soft="compact" '
289286 run : |
290287 cross test --package aes --target ${{ matrix.target }}
291288 cross test --package aes --target ${{ matrix.target }} --features hazmat
292289 - env :
293- RUSTFLAGS : " -Dwarnings --cfg aes_force_soft --cfg aes_compact "
290+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend="soft" --cfg aes_backend_soft="compact" '
294291 run : |
295292 cross test --package aes --target ${{ matrix.target }}
296293 cross test --package aes --target ${{ matrix.target }} --features hazmat
@@ -322,7 +319,7 @@ jobs:
322319
323320 clippy :
324321 env :
325- RUSTFLAGS : " -Dwarnings --cfg aes_compact "
322+ RUSTFLAGS : ' -Dwarnings --cfg aes_backend_soft="compact" '
326323 runs-on : ubuntu-latest
327324 steps :
328325 - uses : actions/checkout@v4
0 commit comments