Skip to content

Could not determine the wanted artifact #141

@HaoboGu

Description

@HaoboGu

When I use cargo size I got this error: Could not determine the wanted artifact.

My project is a workspace, organized like:

- root
  - src
    - Cargo.toml
  - examples
    - example1
      - Cargo.toml
    - example2
      - Cargo.toml  
  - Cargo.toml

The example1 and example2 has different compile target, both use src. So I enabled cargo-features = ["per-package-target"] and forced-target = "thumbv6m-none-eabi" in Cargo.toml.

cargo size worked well in the previous Rust nightly version(2023-12-31), but recently I updated Rust to 1.77-nightly(2024-01-17), cargo size was broken then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions