Parse Embarcadero Delphi/RAD Studio .dproj project files and rsvars.bat environment variable files.
.dprojparsing: Read and parse Delphi project files with proper handling of conditions, properties, and referencesrsvars.batparsing: Extract environment variables from RAD Studio'srsvars.batwith full%VAR%expansion against the live system environment- Variable resolution: Expand MSBuild-style
$(Var)references and%VAR%environment variables - Condition evaluation: Evaluate conditional expressions in project configurations
- Non-destructive mutation: Change property values while preserving original XML whitespace, comments, and attribute ordering
use dproj_rs::{Dproj, DprojBuilder, rsvars};
// Simple – load without rsvars
let dproj = Dproj::from_file("MyProject.dproj")?;
// With rsvars – system env is included automatically
let dproj = DprojBuilder::new()
.rsvars_file(r"C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\rsvars.bat")?
.from_file("MyProject.dproj")?;See the examples directory for more detailed usage.
See CHANGELOG.md for a full history of changes.
Licensed under the LICENSE file.