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:
@@ -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]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user