File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,17 @@ edition = "2021"
66
77[features ]
88noexports = []
9+ derive = [" binaryninja-derive" , " elain" ]
910
1011[dependencies ]
1112lazy_static = " 1.4.0"
1213log = " 0.4"
1314libc = " 0.2"
1415rayon = { version = " 1.8" , optional = true }
1516binaryninjacore-sys = { path = " binaryninjacore-sys" }
16- binaryninja-derive = { path = " binaryninja-derive" }
17- elain = " 0.3.0"
17+ binaryninja-derive = { path = " binaryninja-derive" , optional = true }
18+ # Const-generic alignment gadgetry used by the `AbstractType` derive macro
19+ elain = { version = " 0.3.0" , optional = true }
1820
1921[workspace ]
2022members = [
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ use std::path::PathBuf;
171171pub use binaryninjacore_sys:: BNBranchType as BranchType ;
172172pub use binaryninjacore_sys:: BNEndianness as Endianness ;
173173use binaryview:: BinaryView ;
174+ #[ cfg( feature = "derive" ) ]
174175pub use elain;
175176use metadata:: Metadata ;
176177use metadata:: MetadataType ;
Original file line number Diff line number Diff line change @@ -698,6 +698,7 @@ impl Drop for TypeBuilder {
698698//////////
699699// Type
700700
701+ #[ cfg( feature = "derive" ) ]
701702pub use binaryninja_derive:: * ;
702703pub trait AbstractType : Sized {
703704 const SIZE : usize = std:: mem:: size_of :: < Self > ( ) ;
You can’t perform that action at this time.
0 commit comments