Skip to content

allow unexpected_cfgs in RustGlue.roc#10228

Open
Giesch wants to merge 1 commit into
mainfrom
giesch/allow-unexpected-cfg-in-rust-glue
Open

allow unexpected_cfgs in RustGlue.roc#10228
Giesch wants to merge 1 commit into
mainfrom
giesch/allow-unexpected-cfg-in-rust-glue

Conversation

@Giesch

@Giesch Giesch commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

This is a tiny quality of life change for the rust platform template. If you're writing a non-no-std rust platform (ie, using the rust standard library), and you generate code with RustGlue.roc, the generated code trips a warning for an unrecognized cfg of no_roc_std_helpers. But, this is expected in that case.

This change is to specifically allow unrecognized cfgs in the generated file. There may be a better solution I haven't thought of.

* this prevents a spurious lint in rust platforms including rust std;
  `#[cfg(not(no_roc_std_helpers))]` becomes an unrecognized cfg
@Giesch
Giesch force-pushed the giesch/allow-unexpected-cfg-in-rust-glue branch from d530f7c to 9db13e3 Compare July 19, 2026 19:07
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

Successfully merging this pull request may close these issues.

1 participant