295 releases (4 major breaking)

new 4.0.0 Nov 6, 2024
3.0.0 Nov 1, 2024
2.0.1 Oct 30, 2024
1.0.0 Oct 12, 2024
0.1.3 Nov 26, 2018

#887 in Parser implementations

Download history 62807/week @ 2024-07-18 59368/week @ 2024-07-25 64645/week @ 2024-08-01 67956/week @ 2024-08-08 72846/week @ 2024-08-15 85934/week @ 2024-08-22 74438/week @ 2024-08-29 83432/week @ 2024-09-05 70733/week @ 2024-09-12 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 62909/week @ 2024-10-31

249,616 downloads per month
Used in 407 crates (172 directly)

Apache-2.0

445KB
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
~179K SLoC