Skip to main content

parse_embedded_manifest

Function parse_embedded_manifest 

Source
pub fn parse_embedded_manifest(source: &str) -> Option<EmbeddedManifest>
Expand description

Scans //! doc comments at the top of a Rust file for Cargo manifest sections.

Returns Some(manifest) if a TOML section header (e.g. [dependencies]) is found within the leading //! block, None otherwise.