Closed faultymajority closed 7 months ago
In fact.. cargo build --features git
and cargo build --features git2
both fail.
You still need to declare a "backend" git system in your feature list along with enabling the git
feature to successfully compile.
So
cargo build --features git,gitcl
cargo build --features git,git2
cargo build --features git,gitoxide
I'm working on version 9 where this won't be necessary.
Also, version 8.3.0 makes this possible (due to cargo feature unification)
cargo build --features git,gitcl,git2,gitoxide
vergen
will prefer gitcl
over git2
and git2
over gitoxide
. I do see the documentation says using only the git
feature should compile, but that is incorrect. I will update that.
The problem was that 8.3 broke builds previously using 8.2 - but adding the backend explicitly does indeed fix things.