Romain Malmain 94fa4014ac
Update pyo3 to version 0.23.2 (#2732)
* update pyo3 to latest version

* add python bindings to workspace

* make pyo3 stuff dependent of workspace again

* adapt implementation for the newest version of pyo3
2024-11-27 19:01:31 +01:00

83 lines
2.2 KiB
TOML

[package]
name = "libafl_sugar"
version.workspace = true
authors = ["Andrea Fioraldi <andreafioraldi@gmail.com>"]
description = "Sugar builders to create common fuzzers with LibAFL"
documentation = "https://docs.rs/libafl_sugar"
repository = "https://github.com/AFLplusplus/LibAFL/"
readme = "../README.md"
license = "MIT OR Apache-2.0"
keywords = ["fuzzing"]
edition = "2021"
build = "build.rs"
categories = [
"development-tools::testing",
"emulators",
"embedded",
"os",
"no-std",
]
[package.metadata.docs.rs]
all-features = true
[features]
default = []
document-features = ["dep:document-features"]
clippy = [
"libafl_qemu/clippy",
] # special feature for clippy, don't use in normal projects
#! # Feature Flags
#! ## General Features
## Build python bindings
python = ["pyo3", "libafl_qemu/python", "pyo3-build-config"]
#! ## Features for `libafl_qemu` (Linux only)
#! The following architecture features are mutually exclusive.
## build qemu for x86_64 (default)
x86_64 = ["libafl_qemu/x86_64"]
## build qemu for i386
i386 = ["libafl_qemu/i386"]
## build qemu for arm
arm = ["libafl_qemu/arm"]
## build qemu for aarch64
aarch64 = ["libafl_qemu/aarch64"]
## build qemu for mips (el, use with the 'be' feature of mips be)
mips = ["libafl_qemu/mips"]
## build qemu for powerpc
ppc = ["libafl_qemu/ppc"]
## build qemu for hexagon
hexagon = ["libafl_qemu/hexagon"]
## build qemu for riscv 32bit
riscv32 = ["libafl_qemu/riscv32"]
## build qemu for riscv 64bit
riscv64 = ["libafl_qemu/riscv64"]
[build-dependencies]
pyo3-build-config = { workspace = true, optional = true }
[dependencies]
libafl = { workspace = true, default-features = true }
libafl_bolts = { workspace = true, default-features = true }
libafl_targets = { workspace = true, default-features = true }
# Document all features of this crate (for `cargo doc`)
document-features = { workspace = true, optional = true }
typed-builder = { workspace = true } # Implement the builder pattern at compiletime
pyo3 = { workspace = true, optional = true }
log = { workspace = true }
[target.'cfg(target_os = "linux")'.dependencies]
libafl_qemu = { workspace = true, default-features = true }
[lib]
name = "libafl_sugar"
crate-type = ["cdylib", "rlib"]
[lints]
workspace = true