This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
explain
only shows one feature set for target
and one for host
, so why is the crate in the workspace hack crate?
#526
Labels
documentation
Improvements or additions to documentation
I'm using
cargo-hakari 0.9.10
, with the newexplain
feature (🎉 ), but I'm still confused about why theregex-syntax
crate is in my project's workspace hack crate generated bycargo-hakari
, andexplain
isn't helping (or I don't understand what it's telling me).I've put a small-ish reproduction of this on this branch in this repo: https://github.com/integer32llc/hakari-repro/tree/regex-syntax
Crate "hello" has a dependency on
croaring
, which hasbindgen
as a build dependency, which hasregex
as a dependency in two places, and each place hasregex-syntax
as a dependency.Relevant part of `cargo tree --no-dedupe` output
Crate "world" has a dependency on
regex-automata
, which hasregex-syntax
as a dependency.Relevant part of `cargo tree --no-dedupe` output
cargo hakari generate
has putregex-syntax
in theworkspace-hack
crate under both regular and build dependencies:When I run
cargo hakari explain regex-syntax
, I get this output:Based on the crate listings, I assume the "on the target platform" section is talking about the regular dependency and "on the host platform" is talking about the build dependency.
Based on my understanding of cargo-hakari, I expected at least 2 different feature sets to appear here for both the target section and the host section-- but there's only one set of features.
So I still don't know why cargo-hakari has put regex-syntax into the workspace hack crate, and
cargo hakari explain
isn't telling me in a way I can understand :)I very much appreciate your help, thank you!!!
The text was updated successfully, but these errors were encountered: