cmd-proc-macro 0.1.3

Run some shell script when build the project, and yield the stdout as &[u8]
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# cmd-proc-macro

This crate contains only 1 proc-macro `cmd_execute` that can execute shell commands and yield an expression of type `&'static [u8; N]` which is the output of the commands

# Usage

src/main.rs:

```rust
let cargo = cmd_execute!("cat Cargo.toml");
let bytes = include_bytes!("../Cargo.toml");
assert_eq!(cargo, bytes);
```