RedlineResearch / floorplan

Spatial layout specifications for memory management systems.
https://redlineresearch.github.io/floorplan/
Other
19 stars 0 forks source link

Consider bundling address.rs + mod.rs into a separate crate #2

Closed InnPatron closed 5 years ago

InnPatron commented 5 years ago

Code generation assumes address.rs and macros are in super::*

Bundling address.rs + macros into a separate crate allows for import code-gen to be reduced to use flp_framework::*; where the crate will be imported within the Rust project's Cargo.toml.

In addition, should one want to have multiple flp files in different directories, this change will also reduce code duplication and simplify build scripts.

See this version of flp_framework for an example of such a crate that works with the above code generation change.

cronburg commented 5 years ago

All set. I haven't published the crates (or the haskell project) yet, but those should be available soon, as well.