Skip to content

custom_build.rs regression: Dependency not found in dependencies #16493

@dtolnay

Description

@dtolnay

Problem

Since #16436, cargo is not able to build https://github.com/dtolnay/cxx/tree/master/demo.

@ranger-ross @epage

Steps

cargo check in that directory:

thread 'main' (1857167) panicked at src/cargo/core/compiler/custom_build.rs:477:21:
Dependency `cxx` not found in `demo`s dependencies
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.94.0-nightly (8c133afcd 2026-01-09)
release: 1.94.0-nightly
commit-hash: 8c133afcd5e0d69932fe11f5907683723f8d361d
commit-date: 2026-01-09
host: x86_64-unknown-linux-gnu
libgit2: 1.9.2 (sys:0.20.3 vendored)
libcurl: 8.17.0-DEV (sys:0.4.84+curl-8.17.0 vendored ssl:OpenSSL/3.5.4)
ssl: OpenSSL 3.5.4 30 Sep 2025
os: Ubuntu 24.4.0 (noble) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.regression-from-stable-to-nightlyRegression in nightly that previously worked in stable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions