mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 07:10:05 -04:00
Make Android docs build on docs.rs (#3236)
This commit is contained in:
committed by
Kirill Chibisov
parent
06cec065d4
commit
7aa202b872
@@ -13,7 +13,14 @@ categories = ["gui"]
|
|||||||
rust-version = "1.65.0"
|
rust-version = "1.65.0"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["rwh_04", "rwh_05", "rwh_06", "serde"]
|
features = [
|
||||||
|
"rwh_04",
|
||||||
|
"rwh_05",
|
||||||
|
"rwh_06",
|
||||||
|
"serde",
|
||||||
|
# Enabled to get docs to compile
|
||||||
|
"android-native-activity",
|
||||||
|
]
|
||||||
default-target = "x86_64-unknown-linux-gnu"
|
default-target = "x86_64-unknown-linux-gnu"
|
||||||
# These are all tested in CI
|
# These are all tested in CI
|
||||||
targets = [
|
targets = [
|
||||||
|
|||||||
@@ -84,5 +84,10 @@ impl<T> EventLoopBuilderExtAndroid for EventLoopBuilder<T> {
|
|||||||
/// use winit::platform::android::activity::AndroidApp;
|
/// use winit::platform::android::activity::AndroidApp;
|
||||||
/// ```
|
/// ```
|
||||||
pub mod activity {
|
pub mod activity {
|
||||||
|
// We enable the `"native-activity"` feature just so that we can build the
|
||||||
|
// docs, but it'll be very confusing for users to see the docs with that
|
||||||
|
// feature enabled, so we avoid inlining it so that they're forced to view
|
||||||
|
// it on the crate's own docs.rs page.
|
||||||
|
#[doc(no_inline)]
|
||||||
pub use android_activity::*;
|
pub use android_activity::*;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user