mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Build docs on docs.rs for iOS and Android as well (#2324)
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -24,6 +24,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
rust_version: [stable, nightly]
|
rust_version: [stable, nightly]
|
||||||
platform:
|
platform:
|
||||||
|
# Note: Make sure that we test all the `docs.rs` targets defined in Cargo.toml!
|
||||||
- { target: x86_64-pc-windows-msvc, os: windows-latest, }
|
- { target: x86_64-pc-windows-msvc, os: windows-latest, }
|
||||||
- { target: i686-pc-windows-msvc, os: windows-latest, }
|
- { target: i686-pc-windows-msvc, os: windows-latest, }
|
||||||
- { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
|
- { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
|
||||||
@@ -77,7 +78,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Check documentation
|
- name: Check documentation
|
||||||
shell: bash
|
shell: bash
|
||||||
if: matrix.platform.target != 'wasm32-unknown-unknown'
|
|
||||||
run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
|
run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
|||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Build docs on `docs.rs` for iOS and Android as well.
|
||||||
- **Breaking:** Removed the `WindowAttributes` struct, since all its functionality is accessible from `WindowBuilder`.
|
- **Breaking:** Removed the `WindowAttributes` struct, since all its functionality is accessible from `WindowBuilder`.
|
||||||
- On macOS, Fix emitting `Event::LoopDestroyed` on CMD+Q.
|
- On macOS, Fix emitting `Event::LoopDestroyed` on CMD+Q.
|
||||||
- On macOS, fixed an issue where having multiple windows would prevent run_return from ever returning.
|
- On macOS, fixed an issue where having multiple windows would prevent run_return from ever returning.
|
||||||
|
|||||||
18
Cargo.toml
18
Cargo.toml
@@ -14,7 +14,23 @@ categories = ["gui"]
|
|||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["serde"]
|
features = ["serde"]
|
||||||
default-target = "x86_64-unknown-linux-gnu"
|
default-target = "x86_64-unknown-linux-gnu"
|
||||||
targets = ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "wasm32-unknown-unknown"]
|
# These are all tested in CI
|
||||||
|
targets = [
|
||||||
|
# Windows
|
||||||
|
"i686-pc-windows-msvc",
|
||||||
|
"x86_64-pc-windows-msvc",
|
||||||
|
# macOS
|
||||||
|
"x86_64-apple-darwin",
|
||||||
|
# Unix (X11 & Wayland)
|
||||||
|
"i686-unknown-linux-gnu",
|
||||||
|
"x86_64-unknown-linux-gnu",
|
||||||
|
# iOS
|
||||||
|
"x86_64-apple-ios",
|
||||||
|
# Android
|
||||||
|
"aarch64-linux-android",
|
||||||
|
# WebAssembly
|
||||||
|
"wasm32-unknown-unknown",
|
||||||
|
]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
|
default = ["x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
|
||||||
|
|||||||
Reference in New Issue
Block a user