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

Merge cfg-if into std? #76

Closed
CuriouslyCurious opened this issue Jun 2, 2024 · 2 comments
Closed

Merge cfg-if into std? #76

CuriouslyCurious opened this issue Jun 2, 2024 · 2 comments

Comments

@CuriouslyCurious
Copy link

CuriouslyCurious commented Jun 2, 2024

Seeing as search engines are useless for searching for if this has been answered before I'll ask the question directly here. I apologize if it has been answered elsewhere.

crates.io (total):
image

lib.rs (monthly):
image

This crate is being used by an absurd amount of users and according to lib.rs >68 000 crates. Which states quite clearly that cfg-if is sorely wanted by Rust users. This crate is also very simple only supplying a single macro that is below a hundred lines of code.

There is thus a quite obvious question to ask: Why is this not part of the standard library? Why is it instead maintained as a separate crate by the Rust team?

I'd love to see this as part of the standard library as it'd be one less dependency one has to worry if it is going to be xz'ed in the dependency tree or not.

@ChrisDenton
Copy link
Member

See rust-lang/rust#115585

@CuriouslyCurious
Copy link
Author

Thank you. <3

My searching definitely failed me. I'll close then.

Hopefully it'll be implemented soon.

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