Moved built_info module to separate file

This commit is contained in:
Jedrzej Stuczynski
2020-02-05 15:52:19 +00:00
parent 3497ae1043
commit 83e22dbad9
2 changed files with 3 additions and 4 deletions
+2
View File
@@ -0,0 +1,2 @@
// The file has been placed there by the build script.
include!(concat!(env!("OUT_DIR"), "/built.rs"));
+1 -4
View File
@@ -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() {