12 releases (4 breaking)

0.10.0-nightly-2024-05-20 May 21, 2024
0.9.0-nightly-2024-01-24 Feb 22, 2024
0.8.0-nightly-2024-01-06 Jan 7, 2024
0.7.4-nightly-2023-08-25 Dec 5, 2023
0.6.0-nightly-2023-04-12 May 22, 2023

#441 in Programming languages

50 downloads per month
Used in 10 crates (8 directly)

MIT license

120KB
3K SLoC

rustc_utils provides a wide variety of utilities for working with the Rust compiler. We developed these functions in the course of building various research projects with rustc.

Most of the functionality is organized into extension traits implemented for types in the compiler, such as one for MIR control-flow graphs (BodyExt) or one for text ranges (SpanExt).

This crate is pinned to a specific nightly version of the Rust compiler. See the rustc_plugin README for details on how to add rustc_utils as a dependency.

Dependencies

~0.2–1.3MB
~23K SLoC