cargo-inspect 0.10.3

This extends Cargo to allow you to desugar your Rust code and see what happens behind the curtains.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub use crate::errors::InspectError;
use std::fs::File;
use std::path::PathBuf;
use tempfile::tempdir;

/// Create a temporary file
pub fn tmpfile() -> Result<PathBuf, InspectError> {
    let tmp_path = tempdir()?.into_path();
    let file_path = tmp_path.join("temp.rs");
    File::create(&file_path)?;
    Ok(file_path)
}