Crates.io | ctsh |
lib.rs | ctsh |
version | 0.0.1 |
source | src |
created_at | 2023-07-20 21:14:48.114421 |
updated_at | 2023-07-20 21:14:48.114421 |
description | Runs rust code at compile time. |
homepage | |
repository | https://github.com/danielschemmel/ctsh/ |
max_upload_size | |
id | 921777 |
size | 15,617 |
ctsh!
runs commands at compile time and (optionally) captures their output.
use ctsh::ctsh;
let result = ctsh!("echo" "Hello" "World" as str);
assert_eq!(result.trim(), "Hello World");