cargo-nono icon indicating copy to clipboard operation
cargo-nono copied to clipboard

Print cause backtrace for failure for any top-level cause

Open hobofan opened this issue 6 years ago • 0 comments

Example (Running cargo nono check on https://github.com/hobofan/margo/tree/27974290ca4c957efaff52ae9641859a3158e848):

cargo nono check --package margo-fetch
margo-fetch: ❌
  - Did not find a #![no_std] attribute or a simple conditional attribute like #[cfg_attr(not(feature = "std"), no_std)] in the crate source. Crate most likely doesn't support no_std without changes.
sha2: ✅
futures: ✅
serde: ❌
  - Crate supports no_std if "std" feature is deactivated.
    - Caused by feature flag "std" in crate "serde:1.0.84"
      - Caused by feature flag "default" in crate "serde:1.0.84"
        - Caused by implicitly enabled default feature from "margo-fetch:0.1.0"
serde_derive: ✅
log: ✅
hex: ❌
  - Did not find a #![no_std] attribute or a simple conditional attribute like #[cfg_attr(not(feature = "std"), no_std)] in the crate source. Crate most likely doesn't support no_std without changes.
regex: ❌
  - Did not find a #![no_std] attribute or a simple conditional attribute like #[cfg_attr(not(feature = "std"), no_std)] in the crate source. Crate most likely doesn't support no_std without changes.

For hex and regex, it shouldn't just print that it assumes that it's not supported, but also that those crates are only optional dependencies and are activated by a certain feature flag.

hobofan avatar Jan 05 '19 15:01 hobofan