Open froydnj opened 5 years ago
@froydnj Thanks for your bug report!
I've considered adding this feature, but, depending on the implementation, it's a lot of work. We could have a feature support_all_archs
that depends on each arch's feature. By default, the support_all_archs
could be enabled.
From there, there are two approaches
#[cfg(...)]
attributes capstone-rs to conditionally compile Rust code for each architecture.
It would be splendid if
capstone
exposed Cargo features such that you could only compile support in for specific architecture(s)--usually one, but maybe multiple architectures depending on circumstances. I realize this would probably complicate a few things (e.g. using pregenerated bindings could only be done under certain circumstances), but it'd be nice for building things that are guaranteed to only target architecture X and you don't care about disassembling things for not-X.How complicated do you think this would be to add?
/cc @lars-t-hansen