300 releases (6 major breaking)

new 6.1.0 Feb 6, 2025
5.0.1 Jan 27, 2025
5.0.0 Dec 2, 2024
4.0.1 Nov 16, 2024
0.1.3 Nov 26, 2018

#1345 in Parser implementations

Download history 57202/week @ 2024-10-20 63001/week @ 2024-10-27 56668/week @ 2024-11-03 84551/week @ 2024-11-10 88054/week @ 2024-11-17 60333/week @ 2024-11-24 86496/week @ 2024-12-01 145463/week @ 2024-12-08 186367/week @ 2024-12-15 54903/week @ 2024-12-22 97592/week @ 2024-12-29 226205/week @ 2025-01-05 251006/week @ 2025-01-12 175444/week @ 2025-01-19 157176/week @ 2025-01-26 162514/week @ 2025-02-02

755,322 downloads per month
Used in 439 crates (182 directly)

Apache-2.0

455KB
10K SLoC

Utilities for the swc project

Cargo features

tty-emitter

Adds default implementation of Emitter. Enabling this feature will add tty-related dependencies.

sourcemap

Adds methods to generate web sourcemap.

plugin-base

Base mode for plugins, which can be enabled by plugin-mode or plugin-rt.

This mode creates a trait which can be used to override swc_common itself.

plugin-rt

Creates an implementation for the plugin trait. This implements simply invokes thread-locals declared in swc_common.

plugin-mode

Allows replacing operations related to thread-local variables with a trait.

Dependencies

~6–15MB
~173K SLoC