File: Cargo.toml

package info (click to toggle)
rust-swc-core 35.0.0~ds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,816 kB
  • sloc: javascript: 873; xml: 538; sh: 358; makefile: 35; python: 5
file content (58 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
autobenches   = false
description   = "Runner for swc plugins. This crate is INTERNAL crate and used by swc itself."
documentation = "https://rustdoc.swc.rs/swc_plugin_runner/"
edition       = { workspace = true }
license       = { workspace = true }
name          = "swc_plugin_runner"
repository    = { workspace = true }
version       = "18.0.0"

[lib]
bench   = false
doctest = false

[features]
default = ["filesystem_cache"]

# Supports a cache allow to store compiled bytecode into filesystem location.
# This feature implies in-memory cache support. This is not supported on wasm32 target.
filesystem_cache              = ["blake3"]
plugin_transform_schema_v1    = ["swc_common/plugin_transform_schema_v1"]
plugin_transform_schema_vtest = ["swc_common/plugin_transform_schema_vtest"]

# Enable ECMASCript support
ecma = ["swc_ecma_ast/rkyv-impl"]
# Enable CSS support
css = ["swc_css_ast/rkyv-impl"]

__rkyv    = []
rkyv-impl = ["__rkyv", "swc_common/plugin-rt", "swc_plugin_proxy/plugin-rt"]

[dependencies]
anyhow       = { workspace = true }
parking_lot  = { workspace = true }
rustc-hash   = { workspace = true }
serde        = { workspace = true, features = ["derive"] }
serde_json   = { workspace = true }
tracing      = { workspace = true }

swc_atoms = { version = "7.0.0", path = '../swc_atoms' }
swc_common = { version = "14.0.2", path = "../swc_common", features = [
  "concurrent",
] }
swc_css_ast = { version = "14.0.0", path = "../swc_css_ast", optional = true }
swc_ecma_ast = { version = "14.0.0", path = "../swc_ecma_ast", optional = true }
swc_plugin_proxy = { version = "14.0.0", path = "../swc_plugin_proxy" }
swc_transform_common = { version = "8.0.0", path = "../swc_transform_common" }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
blake3 = { workspace = true, optional = true }

[package.metadata.cargo-shear]
# ignored, as they are only used to enable features
ignored = [
  "swc_ecma_ast",
  "swc_css_ast",
]