DEV Community

Discussion on: Managing Rust binary files and Git when using rustc

Collapse
 
ghost profile image
Ghost

but doesn't cargo deal with all that?, it makes a folder target/ with all the build "residue" and even makes a .gitignore with target/ on it. Whith other platforms sometimes I avoid those "scafoldings" but in the case of Rust Cargo doesn't add anything too fancy or complex. Is there some reason I don't see to not use cargo?

Collapse
 
jjmax75 profile image
John Behan

Yes, cargo takes care of this.

This post is for using rustc directly. I don't think there is any reason not to use cargo