For now, the top-level crate just re-exports the interpreter
This commit is contained in:
parent
475f9bc55e
commit
c798107693
|
@ -461,7 +461,7 @@ dependencies = [
|
|||
name = "hornbeam"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"hornbeam_grammar",
|
||||
"hornbeam_interpreter",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -6,4 +6,4 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
hornbeam_grammar = { version = "0.1.0", path = "../hornbeam_grammar" }
|
||||
hornbeam_interpreter = { version = "0.1.0", path = "../hornbeam_interpreter" }
|
|
@ -1,14 +1,10 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
//! # TEMPORARY!
|
||||
//!
|
||||
//! This crate currently just re-exports all of `hornbeam_interpreter`.
|
||||
//!
|
||||
//! In the future, this crate will provide an abstraction layer over both the interpreter and
|
||||
//! the compile-time template compiler, allowing to switch between them at will in a project
|
||||
//! (or more likely: use the hot-reloadable interpreter in development and the high-performance
|
||||
//! compiler for production).
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
pub use hornbeam_interpreter::*;
|
||||
|
|
Loading…
Reference in New Issue