Skip to content

Commit a9b0d25

Browse files
committed
fix bindings feature
1 parent 4357681 commit a9b0d25

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
- name: '🚧 Build sample'
4949
run: |
50-
cargo build --release --example sample --features env_logger
50+
cargo build --release --example sample --features env_logger,bindings
5151
5252
- name: '🚧 AFLplusplus Checkout'
5353
uses: actions/checkout@v4

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ pub fn afl_fuzz<'a, D: 'a>(
126126
}
127127

128128
/// Fuzzing entrypoint for FFI
129+
#[cfg(feature = "bindings")]
129130
#[unsafe(no_mangle)]
130131
#[allow(non_camel_case_types)]
131132
pub extern "C" fn uc_afl_fuzz(
@@ -154,6 +155,7 @@ pub extern "C" fn uc_afl_fuzz(
154155
}
155156

156157
/// Custom fuzzing entrypoint for FFI
158+
#[cfg(feature = "bindings")]
157159
#[unsafe(no_mangle)]
158160
#[allow(non_camel_case_types)]
159161
pub extern "C" fn uc_afl_fuzz_custom(
@@ -323,7 +325,7 @@ fn uc_afl_fuzz_internal(
323325
}
324326
}
325327

326-
#[cfg(feature = "bindings")]
328+
#[cfg(feature = "python")]
327329
pub mod bindings;
328-
#[cfg(feature = "bindings")]
330+
#[cfg(feature = "python")]
329331
pub use bindings::*;

0 commit comments

Comments
 (0)