samwoodhams / copy_to_output

A small rust library to copy files/folders from the project directory to the output directory
Other
15 stars 5 forks source link

`out_path` will be broken if `get_cargo_target_dir()` succeeds #9

Open Chaoses-Ib opened 5 months ago

Chaoses-Ib commented 5 months ago

https://github.com/samwoodhams/copy_to_output/blob/64dfeabde00aff6b4a6c1b700752b2de83694b57/src/lib.rs#L9-L17

https://github.com/samwoodhams/copy_to_output/blob/64dfeabde00aff6b4a6c1b700752b2de83694b57/src/lib.rs#L57-L71

For example, if get_cargo_target_dir() returns C:\project\target\debug, out_path will be targetC:\project\target\debug\debug.