Skip to content

Commit 92ec9bb

Browse files
committed
rs, sys: mention new feature flags in README
1 parent e63f2f6 commit 92ec9bb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ More complex demos welcome!
122122
[`Error` trait](https://doc.rust-lang.org/std/error/trait.Error.html)
123123
- `use_bindgen`: run `bindgen` to generate Rust bindings to Capstone C library
124124
instead of using pre-generated bindings (not recommended).
125+
- `arch_$ARCH`<sup>&dagger;</sup>: enable arch `$ARCH` support in capstone,
126+
e.g. `arch_arm64` enables arch arm64 support.
127+
- `support_all_archs`<sup>&dagger;</sup>: enable all archs available
128+
in capstone, imply all `arch_$ARCH` features.
125129

126130
<sup>&dagger;</sup>: enabled by default
127131

capstone-sys/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ Instead, consider using [capstone-rs](https://github.com/capstone-rust/capstone-
2424

2525
You can specify the following [features](https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section) in `Cargo.toml`:
2626
* `use_bindgen`: instead of using the pre-generated Capstone bindings, dynamically generate bindings with [`bindgen`][bindgen].
27+
* `full` (enabled by default): enable full capstone build instead of diet.
28+
* `arch_$ARCH` (enabled by default): enable arch `$ARCH` support in capstone, e.g. `arch_arm64` enables arch arm64 support.
29+
* `support_all_archs` (enabled by default): enable all archs available in capstone, imply all `arch_$ARCH` features.
2730

2831
[bindgen]: https://github.com/rust-lang-nursery/rust-bindgen

0 commit comments

Comments
 (0)