-
Notifications
You must be signed in to change notification settings - Fork 67
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
cfg-gated unsafe. #13
Comments
Good question. I think there’s value in gathering unsafe stats without splitting the results per feature, but it could also be interesting to tag each unsafe usage with related cfg attributes. The scanning could always look for cfg attributes and allow optional presentation based on extra command line flags. |
I mean primarily making Currently it shows the same number regardless of |
Ah, yes. That makes sense. |
Repro Using tokio/tokio as featuregate example Using 0.11.2 straight from git docker run -ti --rm rust /bin/bash
nightly-x86_64-unknown-linux-gnu (default) tokio/tokio cargo geiger --all-features cargo geiger (it's nothing included by default) cargo geiger --features fs implementation wise It goes to cargo CompileOptions from_cli currently #226 but we are aiming to decouple Closing as it's been resolved - re-opening if any issues that we can reproduce re: feature gate. There were some other errors from tokio/tokio related to another issue I've linked that will track there. |
Shall it handle
#[cfg(feature=...)]
and other optional unsafe code?The text was updated successfully, but these errors were encountered: