Skip to main content

read_project_crate_name

Function read_project_crate_name 

Source
pub async fn read_project_crate_name(project_path: &Path) -> Result<String>
Expand description

Reads the package.name of a project’s Cargo.toml — the crate name the generated backends and preview symbols build on.

Lighter than Project::open: this only parses the manifest, so callers that need just the crate name (the water preview/water mcp entry points) do not pay for a full project open.

§Errors

Returns an error if Cargo.toml cannot be read or has no package.name.