Skip to content

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Jun 5, 2025

In winit, we have to artificially enable an activity to get the docs to build on Android, which is kinda annoying:
https://github.com/rust-windowing/winit/blob/969237f422e3d1d18821f4ee99e6be7bb6acd913/Cargo.toml#L125-L126

Instead, this PR proposes to handle that logic internally in android-activity, by relying on the fact that docs.rs sets an environment variable (see their docs).

@madsmtm madsmtm requested a review from MarijnS95 August 13, 2025 21:34
Copy link
Member

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

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

Unless I'm reading this wrong, we already tried to enable the native-activity backend by default for cfg(doc), i.e. a user runs cargo doc in this repository.

Is that also not set on docs.rs for dependency crates?

@madsmtm madsmtm added the documentation Improvements or additions to documentation label Sep 4, 2025
@madsmtm madsmtm requested a review from MarijnS95 September 4, 2025 22:36
@madsmtm
Copy link
Member Author

madsmtm commented Sep 4, 2025

Is that also not set on docs.rs for dependency crates?

Nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants