typst/Cargo.toml
Laurenz 30f16bbf64 Add Value type and replace dyn-nodes with call-exprs 🏗
- In addition to syntax trees there are now `Value`s, which syntax trees can be evaluated into (e.g. the tree is `5+5` and the value is `10`)
- Parsing is completely pure, function calls are not parsed into nodes, but into simple call expressions, which are resolved later
- Functions aren't dynamic nodes anymore, but simply functions which receive their arguments as a table and the layouting context
- Functions may return any `Value`
- Layouting is powered by functions which return the new `Commands` value, which informs the layouting engine what to do
- When a function returns a non-`Commands` value, the layouter simply dumps the value into the document in monospace
2020-08-16 22:39:21 +02:00

40 lines
732 B
TOML

[package]
name = "typstc"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2018"
[workspace]
members = ["main"]
[profile.dev.package."*"]
opt-level = 2
[dependencies]
fontdock = { path = "../fontdock" }
tide = { path = "../tide" }
ttf-parser = "0.8.2"
unicode-xid = "0.2"
serde = { version = "1", features = ["derive"], optional = true }
[features]
serialize = []
fs = ["fontdock/fs"]
[dev-dependencies]
criterion = "0.3"
futures-executor = "0.3"
serde_json = "1"
raqote = { version = "0.8", default-features = false }
[[test]]
name = "typeset"
path = "tests/test_typeset.rs"
required-features = ["fs"]
harness = false
[[bench]]
name = "bench-parsing"
path = "benches/bench_parsing.rs"
harness = false