Fix libafl_sugar docs build (#2188)

* Fix libafl_sugar docs build

* doc redoc

* fmt
This commit is contained in:
Dominik Maier 2024-05-16 00:19:09 +02:00 committed by GitHub
parent c7303ace53
commit 34ec907456
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 13 deletions

View File

@ -16,18 +16,33 @@ categories = ["development-tools::testing", "emulators", "embedded", "os", "no-s
all-features = true all-features = true
[features] [features]
python = ["pyo3", "libafl_qemu/python", "pyo3-build-config"]
default = [] default = []
document-features = ["dep:document-features"]
clippy = [ "libafl_qemu/clippy" ] # special feature for clippy, don't use in normal projects
# for libafl_qemu #! # Feature Flags
# The following architecture features are mutually exclusive. #! ## General Features
x86_64 = ["libafl_qemu/x86_64"] # build qemu for x86_64 (default)
i386 = ["libafl_qemu/i386"] # build qemu for i386 ## Build python bindings
arm = ["libafl_qemu/arm"] # build qemu for arm python = ["pyo3", "libafl_qemu/python", "pyo3-build-config"]
aarch64 = ["libafl_qemu/aarch64"] # build qemu for aarch64
mips = ["libafl_qemu/mips"] # build qemu for mips (el, use with the 'be' feature of mips be) #! ## Features for `libafl_qemu` (Linux only)
ppc = ["libafl_qemu/ppc"] # build qemu for powerpc #! The following architecture features are mutually exclusive.
hexagon = ["libafl_qemu/hexagon"] # build qemu for hexagon
## 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-dependencies] [build-dependencies]
pyo3-build-config = { version = "0.18", optional = true } pyo3-build-config = { version = "0.18", optional = true }
@ -37,6 +52,9 @@ libafl = { path = "../libafl", version = "0.12.0", features = ["adaptive_seriali
libafl_bolts = { path = "../libafl_bolts", version = "0.12.0" } libafl_bolts = { path = "../libafl_bolts", version = "0.12.0" }
libafl_targets = { path = "../libafl_targets", version = "0.12.0" } libafl_targets = { path = "../libafl_targets", version = "0.12.0" }
# Document all features of this crate (for `cargo doc`)
document-features = { version = "0.2", optional = true }
typed-builder = "0.18" # Implement the builder pattern at compiletime typed-builder = "0.18" # Implement the builder pattern at compiletime
pyo3 = { version = "0.18", optional = true } pyo3 = { version = "0.18", optional = true }
log = "0.4.20" log = "0.4.20"
@ -47,4 +65,3 @@ libafl_qemu = { path = "../libafl_qemu", version = "0.12.0" }
[lib] [lib]
name = "libafl_sugar" name = "libafl_sugar"
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]

View File

@ -1,5 +1,6 @@
//! Sugar API to simplify the life of the naive user of `LibAFL` //! Sugar API to simplify the life of users of `LibAFL` that just want to fuzz.
/*! */
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
#![deny(rustdoc::broken_intra_doc_links)] #![deny(rustdoc::broken_intra_doc_links)]
#![deny(clippy::all)] #![deny(clippy::all)]
#![deny(clippy::pedantic)] #![deny(clippy::pedantic)]