summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorMartin <mhaug@live.de>2021-08-18 18:12:26 +0200
committerGitHub <noreply@github.com>2021-08-18 18:12:26 +0200
commitc44ecbfbd2706bf8e09728f2c85135aa2299d542 (patch)
tree1a7fe1b7f1627ed63817030468476ef4a5dc2b9e /Cargo.toml
parent011865ab5c8943abcb64c7b545e265d1a65db32a (diff)
Move to exclusively oneshot benchmarks with Iai fork (#41)
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml9
1 files changed, 6 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5f7f28f6..616ad9f9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,9 +10,6 @@ cli = ["anyhow", "codespan-reporting", "fs", "same-file"]
fs = ["dirs", "memmap2", "same-file", "walkdir"]
layout-cache = []
-[workspace]
-members = ["bench"]
-
[profile.dev]
# Faster compilation
debug = 0
@@ -44,6 +41,7 @@ walkdir = { version = "2", optional = true }
walkdir = "2"
tiny-skia = "0.5"
usvg = { version = "0.15", default-features = false }
+iai = { git = "https://github.com/reknih/iai" }
[[bin]]
name = "typst"
@@ -53,3 +51,8 @@ required-features = ["cli"]
name = "typeset"
required-features = ["fs"]
harness = false
+
+[[bench]]
+name = "oneshot"
+path = "benches/oneshot.rs"
+harness = false