Crate cargo_inspect

Source
Expand description

A library for inspecting Rust code

Re-exports§

pub use crate::config::Config;
pub use crate::config::Opt;
pub use crate::errors::InspectError;

Modules§

config
Available configuration settings when using cargo-inspect as a library
errors
Contains all types defined for error handling

Functions§

diff
Compare two strings and return a Github-style diff output
inspect
inspect takes a Rust file or crate as an input and returns the desugared output.
inspect_single
Run inspection on a single file or crate. Return the compiler output (preferably formatted with rustfmt)
tmpfile
Create a temporary file