Expand description
Collect local Solana project inputs for compatibility evaluation.
collect reads configuration and manifests, resolves available lockfile or
captured metadata facts, gathers source observations, and assembles an inventory.
It never invokes Cargo, Anchor, npm, or project scripts. probe_tools and
build_program are separate, opt-in execution boundaries.
Construction lives in program.rs and client.rs; sequencing and enrichment
live in named helpers in those modules, orchestrated by collect.rs. See the repository’s docs/ARCHITECTURE.md for field sources.
Structs§
- Build
Observation - Result of an explicitly requested build, before conversion to an SC100 finding. A successful build does not prove future runtime or client compatibility.
- Collected
- Inventory and policy inputs returned by
collect, before rule evaluation. Tool observations remain empty until an application explicitly probes tools.
Functions§
- build_
program - Run the normal SBF build for one detected program. This is only called from
the explicit
--buildworkflow; project discovery never executes code. - build_
program_ with_ timeout - Run one explicitly requested build with a deadline and bounded retained output.
- collect
- Collect a local project without executing tools or project code.
- enrich_
tool_ observations - Apply opt-in observations without overriding explicit or manifest selections.
This performs no tool execution; callers decide whether to call
probe_tools. Host rustc is retained in the inventory but never substitutes for SBF Rust. - probe_
tools - Opt-in native executable version probes with a three-second deadline and 8 KiB per-stream retention. Nonzero exits and truncated output are not version proof.
- read_
text - Read a regular UTF-8 file with a 4 MiB limit, enforced before and during reading.