log-instrument 0.3.0

Offers an attribute procedural macro that adds `log::trace!` events at the start and end of attributed functions.
Documentation
#![warn(clippy::pedantic)]

use log::{debug, info, warn, LevelFilter};

fn main() {
    env_logger::builder()
        .filter_level(LevelFilter::Trace)
        .init();
    let mut my_struct = MyStruct(None);
    info!("{:?}", my_struct.one());
    let mut my_struct = MyStruct(Some(vec![String::from("a"), String::from("b")]));
    info!("{:?}", my_struct.one());
}
struct MyStruct(Option<Vec<String>>);

impl MyStruct {
    #[log_instrument::instrument]
    fn one(&mut self) -> Option<&mut [String]> {
        const SOMETHING: u32 = 23;
        match &mut self.0 {
            Some(y) => {
                debug!("{y:?}");
                debug!("{SOMETHING}");
                Some(y)
            }
            _ => None,
        }
    }
}