# sealmap-rust
[](https://crates.io/crates/sealmap-rust)
[](https://docs.rs/sealmap-rust)
A pure-Rust language adapter for [sealmap](https://github.com/DreamLab-AI/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 `syn` and never runs `rustc` or
`cargo`, so it works on any checkout, including code that does not compile.
- **Workspace-wide resolution** through `use` imports (renames, globs,
`pub use` re-exports), `crate`/`self`/`super`/`Self`, sibling crates and
receiver types.
- **Honest confidence.** Every call is `exact`, `inferred` or `external`.
- **`sym:` ids and fingerprints.** Every symbol gets a kind-explicit id
(`sym:cargo shop . db/Db#insert().`) plus `sig_hash` and `body_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 `parallel` feature (on by default).
```rust
use sealmap_model::{SourceSet, SymbolId};
use sealmap_rust::{RustOptions, extract};
let mut src = SourceSet::new();
src.insert("Cargo.toml", "[package]\nname = \"shop\"").unwrap();
src.insert("src/lib.rs", r#"
pub struct Db;
impl Db { pub fn insert(&self, id: u64) {} }
pub struct Orders { db: Db }
impl Orders { pub fn place(&self, id: u64) { self.db.insert(id); } }
"#).unwrap();
let out = extract(&src, &RustOptions::default());
let place = out.codebase.symbol(&SymbolId::parse("sym:cargo shop . Orders#place().").unwrap()).unwrap();