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

Fix a bunch of broken feature flags #8021

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Nov 6, 2024

Discovered them by temporarily upgrading to Rust 1.80, which landed the feature flag checker.

  • 🇫🇷

@teh-cmc teh-cmc added 🪳 bug Something isn't working exclude from changelog PRs with this won't show up in CHANGELOG.md 🚢 CI labels Nov 6, 2024
@@ -0,0 +1,3 @@
fn main() {
println!("cargo::rustc-check-cfg=cfg(disable_web_viewer_server)");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't do anything for now, but once we bump to Rust 1.80+ this will tell the checker that this flag actually exists for realsies.

Copy link
Member

@abey79 abey79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done

Comment on lines -362 to -364

#[cfg(target_arch = "wasm32 ")]
Self::ViewportMode(_) => None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@teh-cmc teh-cmc merged commit ddc2847 into main Nov 7, 2024
42 checks passed
@teh-cmc teh-cmc deleted the cmc/feature_flags_shenanigans branch November 7, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working exclude from changelog PRs with this won't show up in CHANGELOG.md 🚢 CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants