swc/common/Cargo.toml
강동윤 eebf14fbef
Allow stable rust (#118)
This pr introduces some cargo features. For `swc_common` and `swc_ecma_ast`, it introduces a feature flag `fold`.
`Fold` and `Visit` traits exist only if the feature is enabled.

For `swc_ecma_parser`, flag called `verify` is added. When disabled, we skip checking of validity of some expressions.

e.g. `{foo = bar}`

Verification is disabled by default it requires nightly compiler
2019-01-17 23:17:16 +09:00

31 lines
738 B
TOML

[package]
name = "swc_common"
version = "0.2.0"
authors = ["강동윤 <kdy1@outlook.kr>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/swc-project/swc.git"
documentation = "https://swc-project.github.io/rustdoc/swc_common/"
description = "Common utilities for the swc project."
[features]
default = []
# Enable folder and visitor. Requires nightly compiler.
fold = ["ast_node/fold"]
[dependencies]
ast_node = { version = "0.3", path = "../macros/ast_node" }
string_cache = "0.7"
either = "1.5"
scoped-tls = { version = "0.1.1", features = ["nightly"] }
unicode-width = "0.1.4"
cfg-if = "0.1.2"
log = "0.4"
atty = "0.2"
parking_lot = "0.6"
fxhash = "0.2"
termcolor = "1.0"
rayon = "1"
rayon-core = "1"
owning_ref = "0.4"