-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use stable channel rust and enable
feature(asm_const)
by condition (#4
) * feat: use stable channle rust and enable `feature(asm_const)` by condition * ci: add stable and nightly build and test * fix: use macro param instead of unspecified constants * feat: throw error if the arch is not supported when feature `asm` is enabled * ci: enable test for PR and push to main * ci: fix
- Loading branch information
Showing
12 changed files
with
518 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fn main() { | ||
#[cfg(feature = "asm")] | ||
if std::env::consts::ARCH != "x86_64" { | ||
eprintln!("Currently feature `asm` can only be enabled on x86_64 arch."); | ||
std::process::exit(1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nightly-2021-11-17 | ||
1.63.0 |
Oops, something went wrong.