#cfg #html #start #ide #language-server #ra-ap-cfg

ra_ap_cfg

Conditional compiling options, cfg attribute parser and evaluator for rust-analyzer

245 releases

Uses new Rust 2024

new 0.0.278 May 5, 2025
0.0.272 Mar 31, 2025
0.0.251 Dec 30, 2024
0.0.246 Nov 25, 2024
0.0.26 Nov 30, 2020

#312 in Text editors

Download history 3048/week @ 2025-01-13 3309/week @ 2025-01-20 4174/week @ 2025-01-27 9708/week @ 2025-02-03 10035/week @ 2025-02-10 10527/week @ 2025-02-17 11606/week @ 2025-02-24 10373/week @ 2025-03-03 11435/week @ 2025-03-10 8154/week @ 2025-03-17 11231/week @ 2025-03-24 11782/week @ 2025-03-31 11781/week @ 2025-04-07 9307/week @ 2025-04-14 9969/week @ 2025-04-21 10340/week @ 2025-04-28

41,974 downloads per month
Used in 32 crates (11 directly)

MIT/Apache

78KB
2K SLoC

rust-analyzer logo

rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.

Quick Start

https://rust-analyzer.github.io/book/installation.html

Documentation

If you want to contribute to rust-analyzer check out the CONTRIBUTING.md or if you are just curious about how things work under the hood, see the Contributing section of the manual.

If you want to use rust-analyzer's language server with your editor of choice, check the manual. It also contains some tips & tricks to help you be more productive when using rust-analyzer.

Security and Privacy

See the security and privacy sections of the manual.

Communication

For usage and troubleshooting requests, please use "IDEs and Editors" category of the Rust forum:

https://users.rust-lang.org/c/ide/14

For questions about development and implementation, join rust-analyzer working group on Zulip:

https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer

License

rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Dependencies

~1.6–8.5MB
~66K SLoC