11 unstable releases (3 breaking)

0.9.0-nightly-2024-01-24 Feb 22, 2024
0.7.4-nightly-2023-08-25 Dec 5, 2023
0.7.3-nightly-2023-08-25 Nov 7, 2023
0.6.0-nightly-2023-04-12 May 22, 2023

#2205 in Rust patterns

21 downloads per month
Used in 4 crates

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.1MB
~20K SLoC