Cargo Features
swc_common has no features set by default.
[dependencies]
swc_common = { version = "5.0.0", features = ["ahash", "concurrent", "debug", "diagnostic-serde", "plugin-base", "plugin-mode", "plugin-rt", "plugin_transform_schema_v1", "plugin_transform_schema_vtest", "tty-emitter", "rkyv-impl", "sourcemap", "arbitrary"] }
- ahash
-
Enables ahash
- concurrent = parking_lot
- debug
- diagnostic-serde plugin-base?
- plugin-base plugin-mode? plugin-rt? = __plugin, anyhow, diagnostic-serde, rkyv-impl
- plugin-mode = __plugin_mode, plugin-base
- plugin-rt = plugin-base
- plugin_transform_schema_v1
-
Affects
plugin::PLUGIN_TRANSFORM_AST_SCHEMA_VERSION
… - plugin_transform_schema_vtest
-
Affects
plugin::PLUGIN_TRANSFORM_AST_SCHEMA_VERSION
… - tty-emitter = termcolor
- rkyv-impl plugin-base? = bytecheck, rancor, rkyv
-
Enables rkyv-impl of swc_atoms
Affects
syntax_pos::EncodePathBuf
,syntax_pos::EncodeUrl
,syntax_pos::EncodeArcString
… - __plugin plugin-base?
-
Affects
plugin::serialized
,syntax_pos::PartialFileLinesResult
… - __plugin_mode plugin-mode?
-
Affects
diagnostic_builder::DiagnosticBuilder.diagnostic
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- anyhow plugin-base?
- bytecheck rkyv-impl?
- parking_lot concurrent?
- rancor rkyv-impl?
- rkyv rkyv-impl?
- sourcemap implicit feature
-
Enables sourcemap
sourcemap:
Basic sourcemap handling for Rust
- termcolor tty-emitter?
- arbitrary implicit feature
-
Enables arbitrary
arbitrary:
The trait for generating structured data from unstructured data