Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid config not found for cargo doc --open command #3

Open
theguardian58 opened this issue Dec 22, 2022 · 1 comment
Open

Valid config not found for cargo doc --open command #3

theguardian58 opened this issue Dec 22, 2022 · 1 comment

Comments

@theguardian58
Copy link

Unexpected behaviour of the TOML_CFG=require_cfg_present env:

The cargo doc --open fails when TOML_CFG=require_cfg_present is set, even when there is an existing valid cfg.toml file. The cargo build, nonetheless, works as expected (i.e. fails only when the cfg.toml file is missing).

Error:

error: custom attribute panicked
  --> src\main.rs:10:1
   |
10 | #[toml_cfg::toml_config]
   | ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: TOML_CFG=require_cfg_present set, but valid config not found!

error: Compilation failed, aborting rustdoc

error: could not document `tst-rust-esp32`
@jamesmunns
Copy link
Owner

Hi @theguardian58, sorry for being so late here!

I'm not sure what is going wrong here, but I am open to suggestions on how to fix this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants