297 releases (5 major breaking)

5.0.0 Dec 2, 2024
4.0.1 Nov 16, 2024
3.0.0 Nov 1, 2024
2.0.1 Oct 30, 2024
0.1.3 Nov 26, 2018

#810 in Parser implementations

Download history 83102/week @ 2024-08-20 79515/week @ 2024-08-27 80928/week @ 2024-09-03 79658/week @ 2024-09-10 64154/week @ 2024-09-17 88162/week @ 2024-09-24 85933/week @ 2024-10-01 57674/week @ 2024-10-08 63315/week @ 2024-10-15 58051/week @ 2024-10-22 64226/week @ 2024-10-29 56370/week @ 2024-11-05 89328/week @ 2024-11-12 85750/week @ 2024-11-19 61411/week @ 2024-11-26 87104/week @ 2024-12-03

334,808 downloads per month
Used in 434 crates (179 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.

ahash

Use ahash instead of rustc_hash for AHashMap and AHashSet.

Dependencies

~6–15MB
~176K SLoC