DanielKeep/cargo-script

Support custom templates

DanielKeep opened this issue · 1 comments

Allow users to specify their own templates for hosting --expr scripts. i.e.:

cargo script -tdisplay --expr 42

With something akin to this in $CARGO_HOME/script-templates/display.rs.template:

%p fn main() { println!("{:?}", %b); }

Implemented in 0.2.5.