mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
82 lines
2.4 KiB
TOML
82 lines
2.4 KiB
TOML
[package]
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
|
description = "Common utilities for the swc project."
|
|
documentation = "https://rustdoc.swc.rs/swc_common/"
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
name = "swc_common"
|
|
repository = "https://github.com/swc-project/swc.git"
|
|
version = "0.32.0"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[features]
|
|
__plugin = []
|
|
__plugin_mode = []
|
|
__plugin_rt = []
|
|
ahash = ["dep:ahash"]
|
|
concurrent = ["parking_lot"]
|
|
debug = []
|
|
default = []
|
|
diagnostic-serde = []
|
|
plugin-base = ["__plugin", "anyhow", "rkyv-impl", "diagnostic-serde"]
|
|
plugin-mode = ["__plugin_mode", "plugin-base"]
|
|
plugin-rt = ["__plugin_rt", "plugin-base"]
|
|
|
|
plugin_transform_schema_v1 = []
|
|
plugin_transform_schema_vtest = []
|
|
|
|
tty-emitter = ["atty", "termcolor"]
|
|
|
|
__rkyv = []
|
|
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "bytecheck"]
|
|
|
|
[dependencies]
|
|
ahash = { version = "0.8.3", optional = true }
|
|
anyhow = { version = "1.0.71", optional = true }
|
|
arbitrary = { version = "1", optional = true, features = ["derive"] }
|
|
atty = { version = "0.2", optional = true }
|
|
# bytecheck version should be in sync with rkyv version. Do not bump individually.
|
|
bytecheck = { version = "0.6.10", optional = true }
|
|
cfg-if = "1.0.0"
|
|
either = "1.5"
|
|
new_debug_unreachable = "1.0.4"
|
|
num-bigint = "0.4"
|
|
once_cell = "1.18.0"
|
|
parking_lot = { version = "0.12.1", optional = true }
|
|
rkyv = { version = "=0.7.42", optional = true, features = [
|
|
"strict",
|
|
"validation",
|
|
] }
|
|
rustc-hash = "1.1.0"
|
|
serde = { version = "1.0.119", features = ["derive"] }
|
|
siphasher = "0.3.9"
|
|
sourcemap = { version = "6", optional = true }
|
|
string_cache = "0.8.7"
|
|
termcolor = { version = "1.0", optional = true }
|
|
tracing = "0.1.37"
|
|
unicode-width = "0.1.4"
|
|
url = "2.4.0"
|
|
|
|
ast_node = { version = "0.9.5", path = "../ast_node" }
|
|
better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" }
|
|
from_variant = { version = "0.1.6", path = "../from_variant" }
|
|
swc_atoms = { version = "0.5.9", path = "../swc_atoms" }
|
|
swc_eq_ignore_macros = { version = "0.1.2", path = "../swc_eq_ignore_macros" }
|
|
swc_visit = { version = "0.5.7", path = "../swc_visit" }
|
|
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.5"
|
|
rayon = "1"
|
|
serde_json = "1"
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "serde"
|