Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-windowing/glutin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.17.0
Choose a base ref
...
head repository: rust-windowing/glutin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 12,879 additions and 7,033 deletions.
  1. +0 −56 .circleci/config.yml
  2. +1 −0 .github/FUNDING.yml
  3. +4 −0 .github/PULL_REQUEST_TEMPLATE.md
  4. +122 −0 .github/workflows/ci.yml
  5. +0 −3 .gitmodules
  6. +0 −33 .travis.yml
  7. +338 −18 CHANGELOG.md
  8. +10 −52 Cargo.toml
  9. +2 −2 LICENSE
  10. +35 −94 README.md
  11. +2 −0 _typos.toml
  12. +0 −24 appveyor.yml
  13. +0 −147 build.rs
  14. +0 −76 examples/fullscreen.rs
  15. +0 −51 examples/multiwindow.rs
  16. +0 −108 examples/support/mod.rs
  17. +0 −46 examples/transparent.rs
  18. +0 −39 examples/window.rs
  19. +34 −0 glutin-winit/CHANGELOG.md
  20. +27 −0 glutin-winit/Cargo.toml
  21. +19 −0 glutin-winit/LICENSE
  22. +6 −0 glutin-winit/README.md
  23. +26 −0 glutin-winit/build.rs
  24. +44 −0 glutin-winit/src/event_loop.rs
  25. +231 −0 glutin-winit/src/lib.rs
  26. +82 −0 glutin-winit/src/window.rs
  27. +90 −0 glutin/Cargo.toml
  28. +1 −0 glutin/LICENSE
  29. +1 −0 glutin/README.md
  30. +25 −0 glutin/build.rs
  31. +118 −0 glutin/src/api/cgl/appkit.rs
  32. +246 −0 glutin/src/api/cgl/config.rs
  33. +317 −0 glutin/src/api/cgl/context.rs
  34. +116 −0 glutin/src/api/cgl/display.rs
  35. +64 −0 glutin/src/api/cgl/mod.rs
  36. +209 −0 glutin/src/api/cgl/surface.rs
  37. +426 −0 glutin/src/api/egl/config.rs
  38. +501 −0 glutin/src/api/egl/context.rs
  39. +217 −0 glutin/src/api/egl/device.rs
  40. +819 −0 glutin/src/api/egl/display.rs
  41. +125 −0 glutin/src/api/egl/mod.rs
  42. +603 −0 glutin/src/api/egl/surface.rs
  43. +374 −0 glutin/src/api/glx/config.rs
  44. +482 −0 glutin/src/api/glx/context.rs
  45. +296 −0 glutin/src/api/glx/display.rs
  46. +209 −0 glutin/src/api/glx/mod.rs
  47. +331 −0 glutin/src/api/glx/surface.rs
  48. +10 −0 glutin/src/api/mod.rs
  49. +557 −0 glutin/src/api/wgl/config.rs
  50. +463 −0 glutin/src/api/wgl/context.rs
  51. +255 −0 glutin/src/api/wgl/display.rs
  52. +149 −0 glutin/src/api/wgl/mod.rs
  53. +312 −0 glutin/src/api/wgl/surface.rs
  54. +536 −0 glutin/src/config.rs
  55. +713 −0 glutin/src/context.rs
  56. +592 −0 glutin/src/display.rs
  57. +178 −0 glutin/src/error.rs
  58. +87 −0 glutin/src/lib.rs
  59. +57 −0 glutin/src/lib_loading.rs
  60. +4 −0 glutin/src/platform/mod.rs
  61. +102 −0 glutin/src/platform/x11.rs
  62. +15 −0 glutin/src/prelude.rs
  63. +552 −0 glutin/src/surface.rs
  64. +20 −0 glutin_egl_sys/Cargo.toml
  65. +1 −0 glutin_egl_sys/LICENSE
  66. +3 −0 glutin_egl_sys/README.md
  67. +61 −0 glutin_egl_sys/build.rs
  68. +250 −0 glutin_egl_sys/src/egl.rs
  69. +38 −0 glutin_egl_sys/src/lib.rs
  70. +46 −0 glutin_examples/Cargo.toml
  71. +1 −0 glutin_examples/LICENSE
  72. +40 −0 glutin_examples/build.rs
  73. +10 −0 glutin_examples/examples/android.rs
  74. +30 −0 glutin_examples/examples/drm.rs
  75. +142 −0 glutin_examples/examples/egl_device.rs
  76. +341 −0 glutin_examples/examples/switch_render_thread.rs
  77. +7 −0 glutin_examples/examples/window.rs
  78. +471 −0 glutin_examples/src/lib.rs
  79. +13 −0 glutin_gles2_sys/Cargo.toml
  80. +1 −0 glutin_gles2_sys/LICENSE
  81. +3 −0 glutin_gles2_sys/README.md
  82. +20 −0 glutin_gles2_sys/build.rs
  83. +49 −0 glutin_gles2_sys/src/lib.rs
  84. +16 −0 glutin_glx_sys/Cargo.toml
  85. +1 −0 glutin_glx_sys/LICENSE
  86. +3 −0 glutin_glx_sys/README.md
  87. +43 −0 glutin_glx_sys/build.rs
  88. +42 −0 glutin_glx_sys/src/lib.rs
  89. +13 −0 glutin_wgl_sys/Cargo.toml
  90. +1 −0 glutin_wgl_sys/LICENSE
  91. +3 −0 glutin_wgl_sys/README.md
  92. +39 −0 glutin_wgl_sys/build.rs
  93. +20 −0 glutin_wgl_sys/src/lib.rs
  94. +16 −0 rustfmt.toml
  95. +0 −108 src/api/android/ffi.rs
  96. +0 −203 src/api/android/mod.rs
  97. +0 −23 src/api/caca/ffi.rs
  98. +0 −124 src/api/caca/mod.rs
  99. +0 −15 src/api/dlopen.rs
  100. +0 −39 src/api/egl/ffi.rs
  101. +0 −786 src/api/egl/mod.rs
  102. +0 −551 src/api/glx/mod.rs
  103. +0 −80 src/api/ios/ffi.rs
  104. +0 −356 src/api/ios/mod.rs
  105. +0 −8 src/api/mod.rs
  106. +0 −209 src/api/osmesa/mod.rs
  107. +0 −12 src/api/wgl/gl.rs
  108. +0 −47 src/api/wgl/make_current_guard.rs
  109. +0 −812 src/api/wgl/mod.rs
  110. +0 −147 src/headless.rs
  111. +0 −808 src/lib.rs
  112. +0 −26 src/os/android.rs
  113. +0 −3 src/os/ios.rs
  114. +0 −29 src/os/macos.rs
  115. +0 −25 src/os/mod.rs
  116. +0 −35 src/os/unix.rs
  117. +0 −28 src/os/windows.rs
  118. +0 −5 src/platform/android/mod.rs
  119. +0 −88 src/platform/emscripten/ffi.rs
  120. +0 −207 src/platform/emscripten/mod.rs
  121. +0 −60 src/platform/ios/mod.rs
  122. +0 −187 src/platform/linux/mod.rs
  123. +0 −89 src/platform/linux/wayland.rs
  124. +0 −302 src/platform/linux/x11.rs
  125. +0 −96 src/platform/macos/headless.rs
  126. +0 −129 src/platform/macos/helpers.rs
  127. +0 −232 src/platform/macos/mod.rs
  128. +0 −25 src/platform/mod.rs
  129. +0 −136 src/platform/windows/context.rs
  130. +0 −193 src/platform/windows/mod.rs
  131. +0 −61 tests/headless.rs
56 changes: 0 additions & 56 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: kchibisov
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [ ] Tested on all platforms changed
- [ ] Added an entry to `CHANGELOG.md` if knowledge of this change could be valuable to users
- [ ] Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
- [ ] Created or updated an example program if it would help users understand this functionality
122 changes: 122 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: CI

on:
pull_request:
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/ci.yml'
push:
branches: [master]
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/ci.yml'

jobs:
check-formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: taiki-e/install-action@v2
with:
tool: typos-cli
- name: Check Formatting
run: cargo fmt --all -- --check
- name: run typos
run: typos
- name: Typos info
if: failure()
run: |
echo 'To fix typos, please run `typos -w`'
echo 'To check for a diff, run `typos`'
echo 'You can find typos here: https://crates.io/crates/typos'
tests:
name: Tests
strategy:
fail-fast: false
matrix:
rust_version: [1.70.0, stable, nightly]
platform:
- { 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, options: --no-default-features, features: wgl }
- { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: egl }
- { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
- { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland,x11" }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx }
- { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
- { target: x86_64-apple-darwin, os: macos-latest, }
exclude:
# Android is tested on stable-3
- rust_version: '1.70.0'
platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
include:
- rust_version: '1.70.0'
platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }


env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0"
OPTIONS: ${{ matrix.platform.options }}
CMD: ${{ matrix.platform.cmd }}
FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
RUSTDOCFLAGS: -Dwarnings

runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
# Used to cache cargo-web
- name: Cache cargo folder
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}

- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust_version }}${{ matrix.platform.host }}
targets: ${{ matrix.platform.target }}
components: clippy

# We need those for examples.
- name: Install GCC Multilib
if: (matrix.platform.os == 'ubuntu-latest') && contains(matrix.platform.target, 'i686')
run: sudo apt-get update && sudo apt-get install gcc-multilib

- name: Install cargo-apk
if: contains(matrix.platform.target, 'android')
run: cargo +stable install cargo-apk

- name: Build tests
shell: bash
run: cargo $CMD test -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
- name: Run tests
shell: bash
if: (
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32'))
run: cargo test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES

- name: Check documentation
shell: bash
run: cd glutin && cargo doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES --document-private-items

- name: Lint with clippy
shell: bash
if: (matrix.rust_version == '1.70.0') && !contains(matrix.platform.options, '--no-default-features')
run: cargo clippy --workspace --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings

3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

Loading