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"
|
2024-07-15 15:53:31 +03:00
|
|
|
version = "0.35.1"
|
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 = []
|
2023-08-16 21:02:05 +03:00
|
|
|
ahash = ["dep:ahash"]
|
2022-09-09 11:05:51 +03:00
|
|
|
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"]
|
|
|
|
|
2023-04-13 08:49:58 +03:00
|
|
|
__rkyv = []
|
2023-05-06 06:54:25 +03:00
|
|
|
rkyv-impl = ["__rkyv", "rkyv", "swc_atoms/rkyv-impl", "bytecheck"]
|
2020-07-31 12:49:07 +03:00
|
|
|
|
2017-12-22 15:51:36 +03:00
|
|
|
[dependencies]
|
2024-04-29 03:54:45 +03:00
|
|
|
ahash = { workspace = true, optional = true }
|
|
|
|
anyhow = { workspace = true, optional = true }
|
|
|
|
arbitrary = { workspace = true, features = ["derive"], optional = true }
|
|
|
|
atty = { workspace = true, optional = true }
|
2023-05-06 06:54:25 +03:00
|
|
|
# bytecheck version should be in sync with rkyv version. Do not bump individually.
|
2024-04-29 03:54:45 +03:00
|
|
|
bytecheck = { workspace = true, optional = true }
|
|
|
|
cfg-if = { workspace = true }
|
|
|
|
either = { workspace = true }
|
|
|
|
new_debug_unreachable = { workspace = true }
|
|
|
|
num-bigint = { workspace = true }
|
|
|
|
once_cell = { workspace = true }
|
|
|
|
parking_lot = { workspace = true, optional = true }
|
|
|
|
rkyv = { workspace = true, features = [
|
2023-04-12 15:30:38 +03:00
|
|
|
"strict",
|
|
|
|
"validation",
|
2024-04-29 03:54:45 +03:00
|
|
|
], optional = true }
|
|
|
|
rustc-hash = { workspace = true }
|
|
|
|
serde = { workspace = true, features = ["derive"] }
|
|
|
|
siphasher = { workspace = true }
|
|
|
|
sourcemap = { workspace = true, optional = true }
|
|
|
|
termcolor = { workspace = true, optional = true }
|
|
|
|
tracing = { workspace = true }
|
|
|
|
unicode-width = { workspace = true }
|
|
|
|
url = { workspace = true }
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2024-04-29 03:56:21 +03:00
|
|
|
ast_node = { version = "0.9.8", path = "../ast_node" }
|
2023-06-22 16:40:52 +03:00
|
|
|
better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" }
|
2024-04-29 03:56:21 +03:00
|
|
|
from_variant = { version = "0.1.8", path = "../from_variant" }
|
2024-07-15 15:51:42 +03:00
|
|
|
swc_allocator = { version = "0.1.1", path = "../swc_allocator", default-features = false }
|
2023-12-01 23:08:13 +03:00
|
|
|
swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
|
2023-12-08 10:18:16 +03:00
|
|
|
swc_eq_ignore_macros = { version = "0.1.3", path = "../swc_eq_ignore_macros" }
|
2024-04-29 03:56:21 +03:00
|
|
|
swc_visit = { version = "0.5.14", path = "../swc_visit" }
|
2023-03-24 07:46:42 +03:00
|
|
|
|
2020-01-15 12:00:08 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-07-10 09:20:27 +03:00
|
|
|
codspeed-criterion-compat = { workspace = true }
|
|
|
|
criterion = { workspace = true }
|
|
|
|
rayon = { workspace = true }
|
|
|
|
serde_json = { workspace = true }
|
2022-04-03 18:56:29 +03:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
harness = false
|
2022-08-11 12:52:44 +03:00
|
|
|
name = "serde"
|