Merge pull request #1199 from Skgland/do_not_gen_in_src

Generate into $OUT_DIR instead of src/
This commit is contained in:
Mark Thom
2022-01-11 23:01:59 -07:00
committed by GitHub
5 changed files with 45 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;