Devolutions / conan-rs

A Rust wrapper of the conan C/C++ package manager (conan.io) to simplify usage in build scripts
Apache License 2.0
36 stars 11 forks source link

Feat: Add method to generate BuildInfo only if its missing #23

Closed Mulling closed 11 months ago

Mulling commented 11 months ago

This PR adds a generate_if_no_buildinfo method to InstallCommand, skipping conan install if build info is available, which improves build times a little bit.

awakecoding commented 11 months ago

@Tomcat-42 got an opinion on this one?

Tomcat-42 commented 11 months ago

Yes, that's very clever. Because in cases where you are building your crate a lot (e.g. when running tauri dev server ) and the c++ codebase dependencies don't change much (this is usually the case ), there is no point running conan install every time.

So, it's good to have that option.

Tomcat-42 commented 11 months ago

@Mulling If you don't mind it would be nice to cite this in the Readme examples (usually people look first there).