mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
refactor engine and layout into input and output
This commit is contained in:
parent
f052891473
commit
4d0f98acd2
40 changed files with 104 additions and 109 deletions
|
|
@ -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" }
|
||||
|
|
|
|||
|
|
@ -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> =
|
||||
|
|
|
|||
|
|
@ -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("")?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue