diff --git a/validator/src/built_info.rs b/validator/src/built_info.rs new file mode 100644 index 0000000000..d11fb6389f --- /dev/null +++ b/validator/src/built_info.rs @@ -0,0 +1,2 @@ +// The file has been placed there by the build script. +include!(concat!(env!("OUT_DIR"), "/built.rs")); diff --git a/validator/src/main.rs b/validator/src/main.rs index 20d7ee6f2d..eba3636636 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -5,6 +5,7 @@ use log::*; use std::process; use toml; +pub mod built_info; mod network; mod services; mod validator; @@ -51,10 +52,6 @@ fn parse_config(matches: &ArgMatches) -> Config { toml::from_str(&config_content).unwrap() } -pub mod built_info { - // The file has been placed there by the build script. - include!(concat!(env!("OUT_DIR"), "/built.rs")); -} fn execute(matches: ArgMatches) -> Result<(), String> { match matches.subcommand() {