268 releases

0.33.26 Apr 29, 2024
0.33.21 Mar 26, 2024
0.33.12 Dec 8, 2023
0.33.9 Nov 15, 2023
0.1.3 Nov 26, 2018

#1 in #emitter

Download history 66532/week @ 2024-01-24 70093/week @ 2024-01-31 77819/week @ 2024-02-07 67564/week @ 2024-02-14 71713/week @ 2024-02-21 76842/week @ 2024-02-28 74607/week @ 2024-03-06 91768/week @ 2024-03-13 99835/week @ 2024-03-20 108426/week @ 2024-03-27 103018/week @ 2024-04-03 97550/week @ 2024-04-10 100651/week @ 2024-04-17 67145/week @ 2024-04-24 63786/week @ 2024-05-01 51241/week @ 2024-05-08

299,866 downloads per month
Used in 317 crates (159 directly)

Apache-2.0

405KB
9K 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

~4–13MB
~179K SLoC