2017-12-22 15:51:36 +03:00
|
|
|
[package]
|
2022-08-11 12:52:44 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
|
|
|
description = "Common utilities for the swc project."
|
2021-03-31 07:09:10 +03:00
|
|
|
documentation = "https://rustdoc.swc.rs/swc_common/"
|
2022-08-11 12:52:44 +03:00
|
|
|
edition = "2021"
|
|
|
|
license = "Apache-2.0"
|
|
|
|
name = "swc_common"
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2022-09-29 01:57:51 +03:00
|
|
|
version = "0.29.3"
|
2021-11-02 17:54:20 +03:00
|
|
|
|
2022-08-11 12:52:44 +03:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2021-11-25 08:16:18 +03:00
|
|
|
|
2022-04-04 14:12:03 +03:00
|
|
|
[lib]
|
|
|
|
bench = false
|
|
|
|
|
2020-07-31 12:49:07 +03:00
|
|
|
[features]
|
2022-09-09 11:05:51 +03:00
|
|
|
__plugin = []
|
|
|
|
__plugin_mode = []
|
|
|
|
__plugin_rt = []
|
|
|
|
concurrent = ["parking_lot"]
|
|
|
|
debug = []
|
|
|
|
default = []
|
|
|
|
diagnostic-serde = []
|
|
|
|
perf = ["parking_lot"]
|
|
|
|
plugin-base = ["__plugin", "anyhow", "rkyv-impl", "diagnostic-serde"]
|
|
|
|
plugin-mode = ["__plugin_mode", "plugin-base"]
|
|
|
|
plugin-rt = ["__plugin_rt", "plugin-base"]
|
|
|
|
|
|
|
|
plugin-bytecheck-base = [
|
|
|
|
"__plugin",
|
|
|
|
"anyhow",
|
|
|
|
"rkyv-bytecheck-impl",
|
|
|
|
"diagnostic-serde",
|
|
|
|
]
|
|
|
|
plugin-bytecheck-mode = ["__plugin_mode", "plugin-bytecheck-base"]
|
|
|
|
plugin-bytecheck-rt = ["__plugin_rt", "plugin-bytecheck-base"]
|
|
|
|
|
|
|
|
plugin_transform_schema_v1 = []
|
|
|
|
plugin_transform_schema_vtest = []
|
|
|
|
|
|
|
|
tty-emitter = ["atty", "termcolor"]
|
|
|
|
|
|
|
|
__rkyv = []
|
|
|
|
# Enably rkyv serialization with stable version of rkyv.
|
|
|
|
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl"]
|
|
|
|
# Enable rkyv serialization with updated version of rkyv, along with bytecheck.
|
|
|
|
rkyv-bytecheck-impl = ["__rkyv", "rkyv-latest", "swc_atoms/rkyv-bytecheck-impl"]
|
2020-07-31 12:49:07 +03:00
|
|
|
|
2017-12-22 15:51:36 +03:00
|
|
|
[dependencies]
|
2022-09-09 11:05:51 +03:00
|
|
|
ahash = "0.7.4"
|
|
|
|
anyhow = { version = "1.0.45", optional = true }
|
|
|
|
arbitrary = { version = "1", optional = true, features = ["derive"] }
|
2022-09-15 08:23:46 +03:00
|
|
|
ast_node = { version = "0.8.6", path = "../ast_node" }
|
2022-09-09 11:05:51 +03:00
|
|
|
atty = { version = "0.2", optional = true }
|
|
|
|
better_scoped_tls = { version = "0.1.0", path = "../better_scoped_tls" }
|
|
|
|
bytecheck = { version = "0.6.9", optional = true }
|
|
|
|
cfg-if = "1.0.0"
|
|
|
|
debug_unreachable = "0.1.1"
|
|
|
|
either = "1.5"
|
|
|
|
from_variant = { version = "0.1.3", path = "../from_variant" }
|
|
|
|
num-bigint = "0.4"
|
|
|
|
once_cell = "1.10.0"
|
|
|
|
parking_lot = { version = "0.12.0", optional = true }
|
|
|
|
rkyv = { version = "=0.7.37", optional = true }
|
|
|
|
# This is to avoid cargo version selection conflict between rkyv=0.7.37 and other versions, as it is strictly pinned
|
|
|
|
# cannot be merged.
|
|
|
|
rkyv-latest = { package = "rkyv-test", version = "=0.7.38-test.2", optional = true }
|
2022-08-11 12:52:44 +03:00
|
|
|
rustc-hash = "1.1.0"
|
2022-09-30 10:57:15 +03:00
|
|
|
serde = { version = "1.0.119", features = ["derive"] }
|
2022-08-11 12:52:44 +03:00
|
|
|
siphasher = "0.3.9"
|
|
|
|
sourcemap = { version = "6", optional = true }
|
|
|
|
string_cache = "0.8.4"
|
2022-09-29 01:57:51 +03:00
|
|
|
swc_atoms = { version = "0.4.18", path = "../swc_atoms" }
|
2022-08-12 02:58:00 +03:00
|
|
|
swc_eq_ignore_macros = { version = "0.1.1", path = "../swc_eq_ignore_macros" }
|
|
|
|
swc_visit = { version = "0.5.2", path = "../swc_visit" }
|
2022-08-11 12:52:44 +03:00
|
|
|
termcolor = { version = "1.0", optional = true }
|
|
|
|
tracing = "0.1.32"
|
|
|
|
unicode-width = "0.1.4"
|
|
|
|
url = "2.2.2"
|
2020-01-15 12:00:08 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-08-11 12:52:44 +03:00
|
|
|
criterion = "0.3"
|
|
|
|
rayon = "1"
|
2020-02-29 04:29:34 +03:00
|
|
|
serde_json = "1"
|
2022-04-03 18:56:29 +03:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
harness = false
|
2022-08-11 12:52:44 +03:00
|
|
|
name = "serde"
|