mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
eebf14fbef
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
20 lines
715 B
TOML
20 lines
715 B
TOML
[package]
|
|
name = "swc_ecma_codegen"
|
|
version = "0.4.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_ecma_codegen/"
|
|
description = "Ecmascript code generator for the swc project."
|
|
|
|
[dependencies]
|
|
bitflags = "1"
|
|
swc_atoms = { version = "0.1", path ="../../atoms" }
|
|
swc_common = { version = "0.2", path ="../../common" }
|
|
swc_ecma_ast = { version = "0.6", path ="../ast" }
|
|
swc_ecma_codegen_macros = { version = "0.1", path ="./macros" }
|
|
sourcemap = "2.2"
|
|
|
|
[dev-dependencies]
|
|
testing = { version = "0.2", path ="../../testing" }
|
|
swc_ecma_parser = { version = "0.8", path ="../parser" } |