Registry / build-tool / swc-core

swc-core

JSON →
library16.3.0rscratesunverified

Core library for the SWC JavaScript/TypeScript compiler.

# Cargo.toml [dependencies] swc_core = "16.3.0"
INSTALL
IMPORT
SIG · SWC-CORE
S
swc-core
build-toolrustv16.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Program
use swc_core::ecma::ast::Program;

Creates a default Program AST node for SWC.

use swc_core::ecma::ast::Program; fn main() { let program = Program::default(); println!("Program: {:?}", program); }
Debug
Known issues
gotchaRequires specific feature flags for different functionalities (e.g., 'ecma', 'common').
fix
Add features like 'ecma' or 'common' in Cargo.toml: swc_core = { version = "16", features = ["ecma"] }
affects: >=16.0.0
Upgrade
Version history
16.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
swc-core — cargo add swc-core · libregistry