summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-01-06 12:41:42 +0100
committerLaurenz <laurmaedje@gmail.com>2020-01-06 12:41:42 +0100
commit2ee5810fecb96a8d4e0d078faecc8c91096d6881 (patch)
tree702c746a3021f5034e1b31cd07e8fadba0e4dd7a /Cargo.toml
parentbd384a2a633e21cd7deff7ed2a29a9c03a63a20e (diff)
Asyncify font loading 🪐
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml10
1 files changed, 9 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 76db3d18..2082d916 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,20 +6,28 @@ edition = "2018"
build = "build.rs"
[dependencies]
+toddle = { path = "../toddle", default-features = false }
tide = { path = "../tide" }
-toddle = { path = "../toddle" }
byteorder = "1"
smallvec = "0.6.10"
unicode-xid = "0.1.0"
+async-trait = "0.1.22"
+futures-executor = { version = "0.3", optional = true }
+
+[features]
+default = ["fs-provider", "futures-executor"]
+fs-provider = ["toddle/fs-provider"]
[[bin]]
name = "typst-bin"
path = "src/bin/main.rs"
+required-features = ["futures-executor"]
[[test]]
name = "layout"
path = "tests/layout.rs"
harness = false
+required-features = ["futures-executor"]
[[test]]
name = "parse"