Skip to content

Commit

Permalink
feat(parser): add simd feature to the parser
Browse files Browse the repository at this point in the history
The `winnow` crate has a `simd` feature which enables some extra
performance improvements. This might limit possible target platforms for
compilations so the flag is exposed as optional feature on the parser
crate instead.

All binary crates will use this flag, but potential users of the parser
crate can omit the feature if it causes issues.
  • Loading branch information
dnaka91 committed Jan 15, 2024
1 parent b38e1ca commit 443c32c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/mabo-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clap.workspace = true
glob.workspace = true
mabo-compiler = { path = "../mabo-compiler" }
mabo-doc = { path = "../mabo-doc" }
mabo-parser = { path = "../mabo-parser" }
mabo-parser = { path = "../mabo-parser", features = ["simd"] }
mabo-project = { path = "../mabo-project" }
miette = { workspace = true, features = ["fancy-no-backtrace"] }
mimalloc.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/mabo-go/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ anyhow.workspace = true
clap.workspace = true
heck = "0.4.1"
mabo-compiler = { path = "../mabo-compiler" }
mabo-parser = { path = "../mabo-parser" }
mabo-parser = { path = "../mabo-parser", features = ["simd"] }
mabo-project = { path = "../mabo-project" }
miette = { workspace = true, features = ["fancy-no-backtrace"] }
mimalloc.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/mabo-lsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ lsp-server = "0.7.6"
lsp-types = { version = "0.95.0", features = ["proposed"] }
mabo-compiler = { path = "../mabo-compiler" }
mabo-meta = { path = "../mabo-meta" }
mabo-parser = { path = "../mabo-parser" }
mabo-parser = { path = "../mabo-parser", features = ["simd"] }
mabo-project = { path = "../mabo-project" }
ouroboros = "0.18.2"
parking_lot = "0.12.1"
Expand Down
1 change: 1 addition & 0 deletions crates/mabo-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ miette = { workspace = true, features = ["fancy-no-backtrace"] }

[features]
debug = []
simd = ["winnow/simd"]

[lints]
workspace = true

0 comments on commit 443c32c

Please sign in to comment.