bazelbuild / bazelbuild/rules_rust

Cannot build a no_std crate that uses a proc macro that uses std

Open
#2,748 1 comment 0 reactions 0 assignees View on GitHub
needs-triage proc-macros
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

Given:

- A crates index where all crates are no_std compatible
- A crate we want to build for bare metal which uses a proc macro that depends on some other crate that needs std (e.g.: `prost-types`)

rules_rust will pull in the proc macro's dependencies and then propagate the `std` feature to all crates in the index, meaning no we can no longer build our crate for bare metal.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.