Macro config

Source
macro_rules! config {
    (
        $($item:ident: $value:expr),*$(,)?
    ) => { ... };
}
Expand description

Define a config to use when compiling crates. This macro is allows you to provide values for the config items.

let config = postcompile::config! {
    edition: "2021".into(),
    dependencies: Vec::new()
};

By default the current crate is included as the only dependency. You can undo this by setting the Dependencies field to an empty vector.

By default the edition is set to whatever the current edition is set to.