Skip to content

Commit

Permalink
chore: clean up features and optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeMasen committed Nov 24, 2022
1 parent 75165ad commit 523f584
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,19 @@ backtrace = "0.3"
ress = "0.11"
resast = "0.5"
log = "0.4"
walkdir = { version = "2", optional = true }
indicatif = { version = "0.12", optional = true, features = ["with_rayon"] }
rayon = { version = "1", optional = true }
pulldown-cmark = { version = "0.7", optional = true }
res-regex = "0.1"
hash-chain = "0.3"
tracing = "0.1"

[features]
default = []
major_libs = []
# This feature populates a field on the Parser `_look_ahead` that will contain a debug format
# string of the look_ahead token. Very helpful when debugging this crate with gdb/lldb as sometimes
# the property shape of the `Token` isn't formatted well
debug_look_ahead = []
error_backtrace = []
serialization = ["resast/serialization"]
esprima = ["resast/esprima"]
moz_central = ["walkdir"]
test_262 = ["indicatif", "rayon", "pulldown-cmark"]
test_262_parser = ["indicatif", "rayon", "pulldown-cmark"]
# This feature disables the moz_central tests by default as they tend to run long on most
# development machines and require a larger minimum stack size to pass
moz_central = []

[dev-dependencies]
criterion = "0.3"
Expand All @@ -54,8 +49,8 @@ harness = false
[[example]]
name = "js-to-json"
path = "examples/js_to_json.rs"
required-features = ["serialization"]
required-features = ["resast/serialization"]
[[example]]
name = "js-to-json-esprima"
path = "examples/js_to_json-esprima.rs"
required-features = ["esprima"]
required-features = ["resast/esprima"]

0 comments on commit 523f584

Please sign in to comment.