cargo publish
panics when running on a procedural macros crate which uses the build-std
unstable feature
#9828
Labels
C-bug
Category: bug
Problem
I was trying to publish a new version of the
uefi-macros
crate, and I encountered the following panic upon runningcargo publish --target x86_64-unknown-uefi
:The project is using the
build-std
unstable feature, and it seems to be the cause for this issue. If I comment out thebuild-std
line in the cargo config file, I'm successfully able to publish the crate.Additionally, I had no issue with publishing a new version of the
uefi-rs
crate, which is a regular library (not proc-macro).Steps
uefi-macros
subdirectory and runcargo publish --target x86_64-unknown-uefi
Possible Solution(s)
The panic message is the same as the one in this issue, so the solution might be similar.
Notes
Output of
rustc --version
:Output of
cargo --version
:Contents of the project's
.cargo/config
:The text was updated successfully, but these errors were encountered: