rustyhorde / vergen

Generate cargo instructions at compile time in build scripts for use with the env! or option_env! macros
Apache License 2.0
370 stars 55 forks source link

Filter newlines from cargo instruction output #289

Closed CraZySacX closed 7 months ago

CraZySacX commented 7 months ago

Fixes #249

This removes any newlines from output intended for cargo instructions. At some point, I may extend this to encode the newlines. However, this would require some utility to decode the environment variables when they are used.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (51642f6) 97.78% compared to head (5f6966a) 97.97%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #289 +/- ## ========================================== + Coverage 97.78% 97.97% +0.19% ========================================== Files 24 24 Lines 1622 1628 +6 ========================================== + Hits 1586 1595 +9 + Misses 36 33 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.