-
-
Save riskable/3c2493723e60c5deebe32f15edfea35d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Build-time constants that get automatically generated from `Config.toml` | |
//! via `build.rs` | |
use core::include; | |
include!(concat!(env!("OUT_DIR"), "/userconfig.rs")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This allows one to
use <your package>::config
in yourmain.rs
(or whatever) like it was just a big file full of lines like: