⚠️ WARNING ⚠️
This crate is intended for Zenoh's internal use. It is not guaranteed that the API will remain unchanged in any version, including patch updates. It is highly recommended to depend solely on the zenoh and zenoh-ext crates and to utilize their public APIs.
Fuzzing
The zenoh-protocol crate includes a cargo-fuzz target for:
endpoint_from_str
From the commons/zenoh-protocol/fuzz directory, run:
# Generate the deterministic seed corpus
# Optional: verify the generated corpus matches the current parser behavior
# Run the fuzz target
# Only rerun a certain input
# Analyze one input without running the fuzz loop
Fuzzing Coverage
To inspect corpus coverage for the fuzz target locally, run:
# Run the fuzz target first to grow the corpus
# Replay the saved corpus and collect coverage data
# Resolve the LLVM tools shipped with the nightly toolchain
LLVM_BIN="/bin"
# Resolve the host target triple used by cargo-fuzz coverage builds
HOST_TRIPLE=""
# Hide Rust stdlib and cargo-registry dependencies from the report.
# Print a text summary
# Hide Rust stdlib and cargo-registry dependencies from the report.
# Only render HTML for the endpoint-related sources we want to inspect.