ryo-metadata
Status: stable. Part of the ryo workspace — AST-centric Rust programming for AI agents.
Cargo workspace and crate metadata resolution for ryo. Solves the
crate:: vs actual-crate-name problem by walking cargo metadata,
mapping file paths to crate names, and producing accurate SymbolPaths.
Install
Quickstart
use WorkspaceResolver;
let resolver = from_manifest?;
let crate_name = resolver.crate_for_file;
assert_eq!;
for member in resolver.members
API Summary
| Type | Purpose |
|---|---|
WorkspaceResolver |
Discover workspace members and map file paths to crates |
CrateInfo |
Single crate metadata entry |
ResolvedCrateName |
Resolved internal-name / display-name pair |
ResolvedFile / ResolvedModulePath |
File and module path resolutions |
MetadataError |
Error type for resolution failures |
cargo_metadata::{Metadata, MetadataCommand, Package} is re-exported for
downstream convenience.
Status
API surface considered stable for the v0.1.0 release.
License
Licensed under either of Apache-2.0 or MIT at your option.