Skip to content

Commit e65392d

Browse files
committed
we love to change the target
1 parent 28c3a33 commit e65392d

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.github/workflows/sha1.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,16 @@ jobs:
189189
- run: cargo test
190190

191191
# TODO: merge with test on MSRV bump to 1.59 or higher
192+
# TODO: do i need to think about no-std platforms here?
192193
test-inline-asm:
193194
runs-on: ubuntu-latest
194195
strategy:
195196
matrix:
197+
target:
198+
- aarch64-unknown-linux-gnu
199+
- x86_64-unknown-linux-gnu
200+
- x86-unknown-linux-gnu
201+
# TODO - aarch64-apple-darwin
196202
rust:
197203
- 1.59.0 # MSRV
198204
steps:

Cargo.lock

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

sha1/src/compress.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ cfg_if::cfg_if! {
77
use soft::compress as compress_inner;
88
} else if #[cfg(feature = "inline-asm")] {
99
mod asm;
10-
#[cfg(all(feature = "inline-asm", target_arch = "x86"))]
11-
use asm::x86::compress as compress_inner;
12-
#[cfg(all(feature = "inline-asm", target_arch = "x86_64"))]
13-
use asm::x86_64::compress as compress_inner;
14-
#[cfg(all(feature = "inline-asm", target_arch = "aarch64"))]
15-
use asm::aarch64::compress as compress_inner;
10+
use asm::compress as compress_inner;
1611
} else if #[cfg(all(feature = "asm", target_arch = "aarch64"))] {
1712
mod soft;
1813
mod aarch64;

0 commit comments

Comments
 (0)