Registry / build-tool / find-crate

find-crate

JSON →
library0.7.1rscratesunverified

Find the crate name from the current Cargo.toml.

# Cargo.toml [dependencies] find-crate = "0.7.1"
INSTALL
IMPORT
SIG · FIND-CRATE
F
find-crate
build-toolrustv0.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

find_crate
use find_crate::find_crate;

Find a crate name from the current Cargo.toml.

use find_crate::find_crate; fn main() { if let Some(name) = find_crate(|s| s == "serde") { println!("Found crate: {}", name); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
find-crate — cargo add find-crate · libregistry