volks73 / cargo-wix

A cargo subcommand to build Windows installers for rust projects using the WiX Toolset
https://volks73.github.io/cargo-wix
Apache License 2.0
306 stars 25 forks source link

feat: add render_to_string to wxs::Execution #212

Closed Gankra closed 1 year ago

Gankra commented 1 year ago

This lets print be used more easily when using cargo-wix as a library.

Gankra commented 1 year ago

context: I want cargo-dist to be able to check if main.wxs needs to be regenerated and report an error if you haven't opted out of it (https://github.com/axodotdev/cargo-dist/pull/391), and so I need to print wxs, but I'm using cargo-wix as a library, so I don't want to write to my own stdout/file.

Gankra commented 1 year ago

successfully being used in https://github.com/axodotdev/cargo-dist/pull/392 🎊

Gankra commented 1 year ago

I believe this is the last thing I need for the cargo-dist mvp integration (everything else is future improvements I can live without to start). would you be willing to publish a new release once this lands?