Move main back into src/ 📨
This commit is contained in:
parent
1a70cb6a33
commit
dd4a4545a6
28
Cargo.toml
28
Cargo.toml
@ -4,18 +4,6 @@ version = "0.1.0"
|
||||
authors = ["The Typst Project Developers"]
|
||||
edition = "2018"
|
||||
|
||||
[workspace]
|
||||
members = ["main"]
|
||||
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 2
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[features]
|
||||
default = ["fs"]
|
||||
fs = ["fontdock/fs"]
|
||||
@ -31,17 +19,27 @@ serde = { version = "1", features = ["derive"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
kurbo = "0.6.3"
|
||||
raqote = { version = "0.8", default-features = false }
|
||||
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 2
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "typstc"
|
||||
required-features = ["fs"]
|
||||
|
||||
[[test]]
|
||||
name = "typeset"
|
||||
path = "tests/test_typeset.rs"
|
||||
required-features = ["fs"]
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "benchmarks"
|
||||
path = "benches/benchmarks.rs"
|
||||
required-features = ["fs"]
|
||||
harness = false
|
||||
|
@ -1,10 +0,0 @@
|
||||
[package]
|
||||
name = "typstc-main"
|
||||
version = "0.1.0"
|
||||
authors = ["The Typst Project Developers"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
typstc = { path = ".." }
|
||||
fontdock = { path = "../../fontdock" }
|
||||
futures-executor = "0.3"
|
@ -100,7 +100,8 @@ fn test(name: &str, src: &str, src_path: &Path, loader: &SharedFontLoader) {
|
||||
let loader = loader.borrow();
|
||||
|
||||
let png_path = format!("{}/{}.png", OUT_DIR, name);
|
||||
render(&layouts, &loader, 3.0).write_png(png_path).unwrap();
|
||||
let surface = render(&layouts, &loader, 3.0);
|
||||
surface.write_png(png_path).unwrap();
|
||||
|
||||
let pdf_path = format!("{}/{}.pdf", OUT_DIR, name);
|
||||
let file = BufWriter::new(File::create(pdf_path).unwrap());
|
Loading…
x
Reference in New Issue
Block a user