refactor engine and layout into input and output

This commit is contained in:
🪞👃🪞 2025-01-07 21:30:07 +01:00
parent f052891473
commit 4d0f98acd2
40 changed files with 104 additions and 109 deletions

View file

@ -7,11 +7,12 @@ version = "0.1.0"
clojure-reader = "0.3.0"
konst = "0.3.16"
itertools = "0.14.0"
tek_layout = { optional = true, path = "../layout" }
tek_input = { optional = true, path = "../input" }
tek_output = { optional = true, path = "../output" }
[features]
default = ["layout"]
layout = [ "tek_layout" ]
default = ["tek_input", "tek_output"]
[dev-dependencies]
tek_tui = { path = "../tui" }

View file

@ -1,6 +1,6 @@
use crate::*;
use std::marker::PhantomData;
use ::tek_layout::{*, tek_engine::{Usually, Content, Render, RenderBox, Output, Thunk}};
use ::tek_output::*;
use EdnItem::*;
pub type EdnCallback<'a, Output, State> =

View file

@ -4,7 +4,7 @@
pub(crate) use std::{
fmt::{Debug, Formatter, Error as FormatError}
};
pub use ::tek_layout;
pub use ::tek_output;
mod edn_error; pub use self::edn_error::*;
mod edn_item; pub use self::edn_item::*;
@ -12,6 +12,9 @@ mod edn_iter; pub use self::edn_iter::*;
mod edn_token; pub use self::edn_token::*;
mod edn_view; pub use self::edn_view::*;
#[cfg(feature = "tek_output")]
pub(crate) use ::tek_output::*;
#[cfg(test)] #[test] fn test_edn () -> Result<(), ParseError> {
use EdnItem::*;
assert_eq!(EdnItem::<String>::read_all("")?,