execute_evcxr 0.1.1

A library for execution of evcxr-supported syntax via building and executing a binary crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::Path;

pub(crate) struct BinaryCrate<'a> {
    pub(crate) path: &'a Path,
    pub(crate) is_permanent: bool,
}

impl<'a> Drop for BinaryCrate<'a> {
    fn drop(&mut self) {
        if !self.is_permanent {
            std::fs::remove_dir_all(self.path).unwrap();
        }
    }
}