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

#839 in Parser implementations

Download history 75366/week @ 2024-09-19 92068/week @ 2024-09-26 74685/week @ 2024-10-03 58424/week @ 2024-10-10 61600/week @ 2024-10-17 56170/week @ 2024-10-24 63309/week @ 2024-10-31 60230/week @ 2024-11-07 101087/week @ 2024-11-14 72875/week @ 2024-11-21 73186/week @ 2024-11-28 86602/week @ 2024-12-05 215780/week @ 2024-12-12 93442/week @ 2024-12-19 57368/week @ 2024-12-26 145842/week @ 2025-01-02

533,031 downloads per month
Used in 437 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
~175K SLoC