Skip to content

Commit 2da1eb6

Browse files
authored
Merge pull request #345 from Freax13/remove-asm-features
remove `external_asm` and `inline_asm` features
2 parents c521e73 + f7b2e90 commit 2da1eb6

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
uses: actions-rs/cargo@v1
6565
with:
6666
command: doc
67-
args: --no-default-features --features external_asm,instructions
67+
args: --no-default-features --features instructions
6868
if: runner.os != 'Windows'
6969

7070
- name: "Run cargo doc without default features"
@@ -83,14 +83,14 @@ jobs:
8383
uses: actions-rs/cargo@v1
8484
with:
8585
command: build
86-
args: --no-default-features --features external_asm,instructions
86+
args: --no-default-features --features instructions
8787
if: runner.os != 'Windows'
8888

8989
- name: "Run cargo build for stable on musl"
9090
uses: actions-rs/cargo@v1
9191
with:
9292
command: build
93-
args: --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
93+
args: --target x86_64-unknown-linux-musl --no-default-features --features instructions
9494
if: runner.os == 'Linux'
9595

9696
- name: "Run cargo test"
@@ -102,14 +102,14 @@ jobs:
102102
uses: actions-rs/cargo@v1
103103
with:
104104
command: test
105-
args: --no-default-features --features external_asm,instructions
105+
args: --no-default-features --features instructions
106106
if: runner.os != 'Windows'
107107

108108
- name: "Run cargo test for stable on musl"
109109
uses: actions-rs/cargo@v1
110110
with:
111111
command: test
112-
args: --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
112+
args: --target x86_64-unknown-linux-musl --no-default-features --features instructions
113113
if: runner.os == 'Linux'
114114

115115
- name: "Install Rustup Targets"

Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ const_fn = []
3939
asm_const = []
4040
doc_cfg = []
4141

42-
# These features are no longer used and only there for backwards compatibility.
43-
external_asm = []
44-
inline_asm = []
45-
4642
[package.metadata.release]
4743
no-dev-version = true
4844
pre-release-replacements = [

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Support for x86_64 specific instructions (e.g. TLB flush), registers (e.g. contr
99

1010
* `nightly`: Enables features only available on nightly Rust; enabled by default.
1111
* `instructions`: Enabled by default, turns on x86\_64 specific instructions, and dependent features. Only available for x86\_64 targets.
12-
* `external_asm`: Use this to build with non-nightly rust. Needs `default-features = false, features = ["instructions"]`. Is unsupported on Windows.
1312

1413
## Building with stable rust
1514

0 commit comments

Comments
 (0)