compile-time-run

Crates.iocompile-time-run
lib.rscompile-time-run
version0.2.12
sourcesrc
created_at2019-03-24 17:42:56.910617
updated_at2021-07-07 12:31:58.998333
descriptionrun a command at compile time and capture the output
homepage
repositoryhttps://github.com/de-vri-es/rust-compile-time-run
max_upload_size
id123526
size12,975
Maarten de Vries (de-vri-es)

documentation

https://docs.rs/compile-time-run

README

Documentation crates.io Build Status

compile-time-run

This crate contains macros to run commands on the host system at compile time. It can be used in some situations to take over functionaility that would otherwise have to be done using a build script.

An example:

use compile_time_run::{run_command, run_command_str};
const VALUE_STR   : &'static str  = run_command_str!("echo", "Hello World!");
const VALUE_BYTES : &'static [u8] = run_command!("echo", "Hello World!");

Keep in mind that running arbitrary commands during your build phase can easily hurt portability.

Commit count: 37

cargo fmt