out 0.1.0

A macro that makes it more convenient to use OUT_DIR.
Documentation

out

A macro that makes it more convenient to use OUT_DIR.

Instead of using:

const PATH: &str = concat!(env!("OUT_DIR"), "/file.txt");

You can do:

const PATH: &str = out!("file.txt");

Note that out! is only valid when OUT_DIR is defined.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.