don't genrate code in src/

[Outputs of Build Script](https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script) states that only files in $OUT_DIR may be modified
This commit is contained in:
Skgland
2022-01-10 19:59:21 +01:00
parent bcacb49c05
commit a5de329712
5 changed files with 43 additions and 21 deletions

View File

@@ -21,7 +21,7 @@ pub struct Atom {
const_assert!(mem::size_of::<Atom>() == 8);
include!("./static_atoms.rs");
include!(concat!(env!("OUT_DIR"), "/static_atoms.rs"));
impl<'a> From<&'a Atom> for Atom {
#[inline]

View File

@@ -21,7 +21,9 @@ mod heap_iter;
pub mod heap_print;
mod indexing;
#[macro_use]
pub mod instructions;
pub mod instructions {
include!(concat!(env!("OUT_DIR"), "/instructions.rs"));
}
mod iterators;
pub mod machine;
mod raw_block;
@@ -29,3 +31,5 @@ pub mod read;
mod targets;
pub mod types;
pub mod write;
use instructions::instr;