Closed
Description
Problem
here is a minimal repro case: https://github.com/dvc94ch/cargo-bug
fails to build when in an empty workspace but builds when not in a workspace
Steps
[workspace]
members = ["a"]
[package]
name = "a"
version = "0.1.0"
edition = "2021"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
surf = { version = "2.3.2", default-features = false, features = ["h1-client-rustls"] }
[target.'cfg(target_family = "wasm")'.dependencies]
surf = { version = "2.3.2", default-features = false, features = ["wasm-client"] }
Possible Solution(s)
No response
Notes
No response
Version
cargo version --verbose
cargo 1.65.0 (4bc8f24d3 2022-10-20)
release: 1.65.0
commit-hash: 4bc8f24d3e899462e43621aab981f6383a370365
commit-date: 2022-10-20
host: x86_64-unknown-linux-gnu
libgit2: 1.5.0 (sys:0.15.0 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1q)
os: Arch Linux [64-bit]