302 releases (7 major breaking)

new 7.0.0 Feb 17, 2025
6.1.1 Feb 13, 2025
5.0.1 Jan 27, 2025
5.0.0 Dec 2, 2024
0.1.3 Nov 26, 2018

#1421 in Parser implementations

Download history 63427/week @ 2024-10-28 56106/week @ 2024-11-04 85121/week @ 2024-11-11 88506/week @ 2024-11-18 60251/week @ 2024-11-25 86578/week @ 2024-12-02 146924/week @ 2024-12-09 184378/week @ 2024-12-16 55079/week @ 2024-12-23 99539/week @ 2024-12-30 229191/week @ 2025-01-06 248984/week @ 2025-01-13 172540/week @ 2025-01-20 155853/week @ 2025-01-27 166851/week @ 2025-02-03 185140/week @ 2025-02-10

686,758 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–16MB
~173K SLoC