Skip to content

fix(query): Drop the no-std keyword - #376

Merged
epage merged 1 commit into
rust-cli:mainfrom
Mattbusel:query-no-std-keyword
Nov 20, 2026
Merged

epage merged 1 commit into
rust-cli:mainfrom
Mattbusel:query-no-std-keyword

Conversation

@Mattbusel

Copy link
Copy Markdown
Contributor

anstyle-query lists no-std in its keywords, but it needs std. It reads CLICOLOR, CLICOLOR_FORCE, NO_COLOR, TERM, COLORTERM and CI through std::env::var_os (crates/anstyle-query/src/lib.rs:24, 35, 50, 58, 116, 134) and has no #![no_std]. Built as a dependency for thumbv7em-none-eabihf with default-features = false:

error[E0463]: can't find crate for `std`
 --> anstyle-query-1.1.5/src/lib.rs:1:1

So the keyword points no_std users at a crate they can't build. This PR removes no-std from the keywords and changes nothing else. If the keyword was meant for something I'm missing, feel free to close this.

Found with atlas claims from qnx-crate-atlas, which I maintain. It builds each top-500 crate for the targets that its categories, keywords and docs claim.

anstyle-query needs std: it reads CLICOLOR, CLICOLOR_FORCE, NO_COLOR and
TERM through std::env::var_os (src/lib.rs:24, 35, 50) and has no
#![no_std]. Built for thumbv7em-none-eabihf with default-features = false,
it stops at src/lib.rs:1 with error[E0463]: can't find crate for std.
The no-std keyword sends no_std users to a crate they cannot build.
@epage

epage commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Huh, looks like it was there since crate creation which means it is likely a copy/paste bug.

Thanks!

@epage
epage merged commit f9a1b49 into rust-cli:main Nov 20, 2026
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.

2 participants