Skip to main content

parse_lib

Function parse_lib 

Source
pub fn parse_lib(path: &Path) -> Result<ApiSurface, ApiSurfaceError>
Expand description

Parse the public API surface from a Rust source file.

Only top-level items with pub (not pub(crate), pub(super), etc.) visibility are included. Items annotated with #[doc(hidden)] are excluded.