| Crates.io | makefile-lossless |
| lib.rs | makefile-lossless |
| version | 0.2.1 |
| created_at | 2023-11-27 21:02:41.185996+00 |
| updated_at | 2025-04-07 12:24:55.126897+00 |
| description | Lossless Parser for Makefiles |
| homepage | https://github.com/jelmer/makefile-lossless |
| repository | https://github.com/jelmer/makefile-lossless |
| max_upload_size | |
| id | 1050935 |
| size | 127,041 |
This crate provides a lossless parser for makefiles, creating a modifiable CST.
Example:
let mf = Makefile::read("Makefile").unwrap();
println!("Rules in the makefile: {:?}", mf.rules().map(|r| r.targets().join(" ")).collect::<Vec<_>>());