Skip to content

Commit 7863078

Browse files
authored
Revert "rs, sys: rename and invert check_only feature to build"
This reverts commit cd84238.
1 parent 069bede commit 7863078

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: test
3838
run: env ${{ matrix.rust.env }} ./capstone-rs/ci/test.sh
3939

40-
- name: test (all features)
41-
run: env ${{ matrix.rust.env }} ALL_FEATURES=1 ./capstone-rs/ci/test.sh
40+
- name: test (with bindgen)
41+
run: env ${{ matrix.rust.env }} FEATURES="use_bindgen" ./capstone-rs/ci/test.sh
4242

4343
- name: test (only enable x86 and arm64)
44-
run: env ${{ matrix.rust.env }} FEATURES=std,full,arch_x86,arch_arm64,build NO_DEFAULT_FEATURES=1 ./capstone-rs/ci/test.sh
44+
run: env ${{ matrix.rust.env }} FEATURES=std,full,arch_x86,arch_arm64 NO_DEFAULT_FEATURES=1 ./capstone-rs/ci/test.sh

capstone-rs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ name = "my_benchmark"
2929
harness = false
3030

3131
[features]
32-
default = ["full", "std", "support_all_archs", "build"]
32+
default = ["full", "std", "support_all_archs"]
3333
std = []
3434
# The 'full' feature, enabled by default, compiles Capstone normally. When disabled,
3535
# Capstone will be built in Diet mode (https://www.capstone-engine.org/diet.html).
@@ -77,4 +77,4 @@ arch_wasm = ["capstone-sys/arch_wasm"]
7777
arch_x86 = ["capstone-sys/arch_x86"]
7878
arch_xcore = ["capstone-sys/arch_xcore"]
7979
# Can be used to accelerate check builds by not building C code
80-
build = ["capstone-sys/build"]
80+
check_only = ["capstone-sys/check_only"]

capstone-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ regex = { optional = true, version = "1.10.4" }
3232
cc = "1.0"
3333

3434
[features]
35-
default = ["full", "support_all_archs", "build"]
35+
default = ["full", "support_all_archs"]
3636
full = []
3737
# use pre-generated bindings instead of dynamically with bindgen
3838
use_bindgen = ["bindgen", "regex"] # Dynamically generate bindings with bindgen
@@ -76,4 +76,4 @@ arch_wasm = []
7676
arch_x86 = []
7777
arch_xcore = []
7878
# Can be used to accelerate check builds by not building C code
79-
build = []
79+
check_only = []

capstone-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ fn main() {
327327
let mut header_search_paths: Vec<PathBuf> = Vec::new();
328328

329329
// speed up cargo check by skipping native part
330-
if cfg!(feature = "build") {
330+
if !cfg!(feature = "check_only") {
331331
build_capstone_cc();
332332
}
333333

cstool/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default-features = false
1616
features = ["error-context", "help", "std", "string", "usage"]
1717

1818
[features]
19-
default = ["full", "support_all_archs", "build"]
19+
default = ["full", "support_all_archs"]
2020
full = ["capstone/full"]
2121

2222
support_all_archs = [
@@ -58,5 +58,3 @@ arch_tricore = ["capstone/arch_tricore"]
5858
arch_wasm = ["capstone/arch_wasm"]
5959
arch_x86 = ["capstone/arch_x86"]
6060
arch_xcore = ["capstone/arch_xcore"]
61-
# Can be used to accelerate check builds by not building C code
62-
build = ["capstone/build"]

0 commit comments

Comments
 (0)