sealmap-rust
A pure-Rust language adapter for sealmap: it
turns Rust source into a sealmap_model::Codebase of modules, types, traits,
functions and methods, the relations between them, and an ordered call flow
for every function body.
- No toolchain at runtime. It parses with
synand never runsrustcorcargo, so it works on any checkout, including code that does not compile. - Workspace-wide resolution through
useimports (renames, globs,pub usere-exports),crate/self/super/Self, sibling crates and receiver types. - Honest confidence. Every call is
exact,inferredorexternal. sym:ids and fingerprints. Every symbol gets a kind-explicit id (sym:cargo shop . db/Db#insert().) plussig_hashandbody_hash, which ignore comments, whitespace, rustfmt rewrites and moves.- Hardened for large trees:
.gitignore-aware loading, big-stack collection with a per-file panic guard, linear glob resolution. VisionClaw (934 files) extracts and renders in about 1 s. - Deterministic, with or without the
parallelfeature (on by default).
use ;
use ;
let mut src = new;
src.insert.unwrap;
src.insert.unwrap;
let out = extract;
let place = out.codebase.symbol.unwrap;
let calls: = place.flow.as_ref.unwrap.calls.map.collect;
assert_eq!;
Licence
Licensed under either of Apache License, Version 2.0 or MIT licence, at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 licence, shall be dual licensed as above, without any additional terms or conditions.