Skip to content
Snippets Groups Projects
Verified Commit decc7341 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: build.rs mocking support

Should fix automation of format.
parent c9c06a4b
No related branches found
No related tags found
No related merge requests found
Pipeline #2165 passed
...@@ -8,4 +8,4 @@ Cargo.lock ...@@ -8,4 +8,4 @@ Cargo.lock
/res/roms.prop /res/roms.prop
/frontends/*/target /frontends/*/target
/src/gen.rs /src/gen/build.rs
...@@ -29,8 +29,8 @@ use std::path::Path; ...@@ -29,8 +29,8 @@ use std::path::Path;
use std::process::Command; use std::process::Command;
use std::str; use std::str;
const BUILD_OUT_FILE: &str = "gen.rs"; const BUILD_OUT_FILE: &str = "build.rs";
const SOURCE_DIR: &str = "./src"; const SOURCE_DIR: &str = "./src/gen";
fn main() { fn main() {
// in case we're running under docs.rs then we must return the control // in case we're running under docs.rs then we must return the control
......
//! Global constants, such as compiler version used, algorithms, compression and filters supported and others
pub const COMPILATION_DATE: &str = "-";
pub const COMPILATION_TIME: &str = "-";
pub const VERSION: &str = "x.x.x";
pub const COMPILER: &str = "rustc";
pub const COMPILER_VERSION: &str = "x.x.x";
pub const FEATURES: [&str; 1] = ["cpu"];
pub const PLATFORM_CPU_BITS: &str = "64";
pub const DEFAULT_THREAD_POOL_SIZE: usize = 1;
pub const MAX_THREAD_POOL_SIZE: usize = 1;
//! Constants that define the current build and execution environment.
#[cfg(feature = "readonly")]
pub mod mock;
#[cfg(feature = "readonly")]
pub use self::mock::*;
#[rustfmt::skip]
#[cfg(not(feature = "readonly"))]
pub mod build;
#[cfg(not(feature = "readonly"))]
pub use self::build::*;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment