Macro venv

Source
macro_rules! venv {
    () => { ... };
    ($ver: literal) => { ... };
}
Expand description

The venv! macro creates a virtual environment with the latest version of the vyper compiler installed. Optionally, you can pass the desired version of the Vyper compiler you want to install, i.e “0.3.10”, as a &str.


 use vyper_rs::venv::*;
 use vyper_rs::*;
 use vyper_rs::vyper_errors::VyperErrors;

 fn try_me() -> Result<(), VyperErrors> {
     let _:  Venv<Ready> = venv!();
     let _: Venv<Ready> = venv!("0.3.10");
     Ok(())
 }