Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
400f75a
Make WindowStore::for_each less terrifying to rebase (#1304)
Osspial Dec 4, 2019
2888d5c
Fix array_into_iter warning on Windows (#1308)
Osspial Dec 4, 2019
1a514df
X11: Fix incorrect DPI factor when waking from suspend (#1303)
murarth Dec 4, 2019
830d47a
Have EventLoopClosed contain the original event (#1294)
fogti Dec 7, 2019
35505a3
X11: Sync key press/release with window focus (#1296)
murarth Dec 7, 2019
e5291c9
Release 0.20.0-alpha5 (#1315)
Manishearth Dec 10, 2019
1f81e5c
X11: Report `CursorMoved` when touch event occurs (#1297)
murarth Dec 12, 2019
c1b93fc
Add ModifiersChanged event for macOS (#1268)
chrisduerr Dec 12, 2019
3e1d169
On Wayland, fix cursor icon updates on window borders when using CSD …
kchibisov Dec 18, 2019
01203b2
Fix run_return in MacOS (#1321)
hatoo Dec 19, 2019
73248bd
On Wayland, under mutter(GNOME Wayland), fix CSD being behind the sta…
kchibisov Dec 20, 2019
38c8cb9
FIX Crash on macOS when starting maximized without decorations (#1323)
hatoo Dec 20, 2019
2f352ca
X11: Fix CursorEntered event for non-winit window (#1320)
murarth Dec 22, 2019
92741aa
Fix array_into_iter warning on Windows (#1329)
Osspial Dec 22, 2019
82889e2
Window::set_minimized (#985) (#990)
SuperiorJT Dec 22, 2019
c10c820
Reimplement NativeDisplayMode on iOS for #1310 (#1330)
simlay Dec 22, 2019
0c151f9
Implement changes to `RedrawRequested` event (#1062)
murarth Jul 31, 2019
8eb7853
Implement revamped RedrawRequested on Windows (#1050)
Osspial Aug 27, 2019
eb38ff4
Run rustfmt
Osspial Oct 24, 2019
cdc32eb
Implemented revamped `RedrawRequested` for linux wayland (#1237)
heghe Oct 24, 2019
5b48928
Implement revamped `RedrawRequested` on macOS (#1235)
hecrj Oct 27, 2019
133b11f
Implement revamped `RedrawRequested` on Web (#1301)
hecrj Dec 3, 2019
530ff54
Implement revamped `RedrawRequested` on iOS. (#1299)
simlay Dec 22, 2019
8a9a9cd
Move changelog entry into proper position
Osspial Dec 22, 2019
a8d6db0
Update alpha version in readme.md
Osspial Dec 22, 2019
25123be
Rebasing moved the RedrawRequested changelog entry to the wrong position
Osspial Dec 22, 2019
25e018d
Fix extraneous `#` in `0.20.0 Alpha 5`
Osspial Dec 22, 2019
d59eec4
Add support for Windows Dark Mode (#1217)
davidhewitt Dec 22, 2019
5d99316
macOS: Don't change fullscreen state during fullscreen transition (#1…
hatoo Dec 24, 2019
cc206d3
Implement windows focus key press/release on Windows (#1307)
Osspial Dec 27, 2019
027c521
Fix changelog
Osspial Dec 27, 2019
20e8169
Change ModifiersState to a bitflags struct (#1306)
Osspial Dec 28, 2019
8a3a32f
Properly mark a few changes as breaking
Osspial Dec 28, 2019
468b6b8
fix: remove deprecated usage of `mem::uninitialized`. (#1341)
tangmi Dec 28, 2019
e4451d6
Fix Window::set_visible not setting internal flags correctly (#1345)
Osspial Dec 29, 2019
fa7a302
[MacOS] Fix memory management (#1342)
hatoo Dec 29, 2019
d9bda3e
Implement ModifiersChanged on Windows, and fix bugs discovered in imp…
Osspial Dec 30, 2019
dd768fe
MacOS fix `CursorEntered` and `CursorLeft` events fired at old window…
hatoo Dec 30, 2019
7367b8b
On Macos, Hide cursor only inside window (#1348)
hatoo Jan 3, 2020
114c18e
On X11, make `WINIT_HIDPI_FACTOR` dominate `Xft.dpi` in some cases (#…
kchibisov Jan 3, 2020
c0b46a0
Relase alpha 6 (#1338)
Osspial Jan 3, 2020
d1c6506
Fix ModifiersChanged event on X11 (#1358)
chrisduerr Jan 4, 2020
028d3ec
Make examples set control_flow in a more realistic way (#1363)
Osspial Jan 5, 2020
57f29aa
Added some "how" and "why" docs to event handling. (#1032)
icefoxen Jan 5, 2020
2da2408
Replace Appveyor and Travis with Github Actions (#1309)
Osspial Jan 5, 2020
f379d06
WIP - Make EL2 DPI changes and implement on Windows (#895)
Osspial Jun 19, 2019
6ffd787
On Windows, make AdjustRect calls DPI-aware when possible (#1015)
Osspial Jan 4, 2020
6bb7db7
On Windows, fix new DPI API not setting window size properly (#1130)
Osspial Jan 4, 2020
7b43b0b
Implement DPI Usability Upgrades for X11 and Wayland (#1098)
murarth Jan 4, 2020
077ee4d
macOS: Dpi overhaul (#997) (and rebase changes)
vbogaevsky Jan 4, 2020
cbf61e5
Fix window rectangle change being in wrong changelog entry
Osspial Oct 16, 2019
b16042a
iOS: Dpi overhaul (#1223)
vbogaevsky Oct 18, 2019
3a1e694
Make size/position types generic over pixel type (#1277)
Osspial Jan 4, 2020
28a20ae
Dpi Type conversions into/from arrays (#1283)
Nov 26, 2019
777d9ed
Implement hidpi for web platform (#1233)
tangmi Dec 31, 2019
55166da
Remove Option from HiDpiFactorChanged in favor of a bare PhysicalSize…
Osspial Jan 3, 2020
85ea3f1
Use i32 in Position::Physical (#1350)
Osspial Jan 3, 2020
d29f7f3
Rename hidpi_factor to scale_factor (#1334)
Osspial Jan 3, 2020
ac69a9c
Silence warnings about use of deprecated fields
murarth Jan 4, 2020
7753bbb
Fix examples
murarth Jan 4, 2020
28b82fb
Try to fix iOS build
Osspial Jan 4, 2020
9b122c3
Update the DPI module docs (#1349)
Osspial Jan 5, 2020
a1b8d26
Refine DPI docs
Osspial Jan 5, 2020
3aa3880
Add changelog entry
Osspial Jan 5, 2020
ec1ae68
X11: Properly update window size constraints on DPI change (#1356)
murarth Jan 4, 2020
627a127
we did it bois (#1352)
Osspial Jan 5, 2020
6a330a2
On Windows, fix bug where RedrawRequested would only get emitted ever…
Osspial Jan 6, 2020
6b08757
X11: Fix deadlock on window state with certain window events (#1369)
murarth Jan 7, 2020
02ac745
impl Default for WindowBuilder (#1373)
lcnr Jan 7, 2020
d15eb04
Make docs set control_flow in a more realistic way (#1376)
murarth Jan 8, 2020
09c4ed0
Remove util from gitignore
Osspial Jan 9, 2020
4b618bd
Don't discard high-precision cursor position data (#1375)
Ralith Jan 10, 2020
9e3844d
Fix warnings on all platforms (#1383)
murarth Jan 10, 2020
633d0de
Fix run_return does not return on macOS unless it receives a message …
hatoo Jan 10, 2020
1ddceeb
macOS: Unbundled window activation hack (#1318)
francesca64 Jan 11, 2020
a6d180c
On Wayland, fix coordinates in mouse events when scale factor isn't 1…
kchibisov Jan 11, 2020
dc302b0
Return physical position in `CursorMoved` on macOS (#1378)
hecrj Jan 12, 2020
c4d0795
Remove TODOs from the web backen (#1395)
Jan 13, 2020
ad7d493
doc: change remaining EventsCleared references to MainEventsCleared (…
filnet Jan 13, 2020
9daa073
on MacOS, Fix not sending ReceivedCharacter event for some key combin…
hatoo Jan 14, 2020
1fe4a7a
Add the ability to pass a prebuilt canvas (#1394)
Jan 16, 2020
d934f94
Fix: deadlock when requesting redraw on X11 (#1408)
dhardy Jan 18, 2020
e48262a
Simplify code by switching to higher-level dispatch APIs (#1409)
SSheldon Jan 19, 2020
3e3bb8a
add hide_application on macos (#1364)
Jan 19, 2020
0ae78db
Fix building on Windows 7 and 8 (#1398)
Osspial Jan 21, 2020
8856b6e
Remove unused code in X11 backend. (#1416)
goddessfreya Jan 23, 2020
fd946fe
Web backend refactor and documentation (#1415)
Jan 26, 2020
66fe69e
Fix warnings on macos (#1419)
murarth Jan 26, 2020
e295104
Remove Wayland theme intermediates (#1209)
chrisduerr Jan 27, 2020
22dcc19
Fix set_minimized(true) works only with decorations on macOS (#1411)
hatoo Jan 31, 2020
2f8aa5c
Remove armv7-apple-ios target from CI (#1433)
murarth Feb 4, 2020
c1eb7f9
Fix deadlock wayland. (#1438)
dvc94ch Feb 4, 2020
28f0eb5
Release 0.21.0 (#1440)
goddessfreya Feb 5, 2020
4eddd1e
On Wayland, fix coordinates in touch events when scale factor isn't 1…
kchibisov Feb 8, 2020
96df858
On Wayland, fix color from `close_button_icon_color` not applying (#1…
kchibisov Feb 9, 2020
a1b65f7
Ignore locale if unsupported by X11 backend (#1445)
gentooboontoo Feb 10, 2020
5f52d7c
On macOS, Fix `set_simple_screen` to remember frame excluding title b…
hatoo Feb 12, 2020
83b60be
on Wayland, Add HiDPI cursor support (#1454)
kchibisov Feb 13, 2020
f0093d3
rename dpi_factor to scale_factor where appropriate (#1463)
filnet Feb 13, 2020
505f312
Add new example that demonstrates the different control flow schemes …
filnet Feb 13, 2020
bc29931
Add an example that calls request_redraw() from a thread (#1467)
filnet Feb 15, 2020
e88e8bc
Map `UserEvent` properly in `Event::to_static` (#1468)
hecrj Feb 16, 2020
d1073dc
Implement ThemeChanged for web target. (#1462)
daxpedda Feb 17, 2020
76d0dd7
On Wayland, Hide CSD for fullscreen windows (#1473)
kchibisov Feb 18, 2020
522a6e3
fix issues in wait_until_time_or_msg function (#1423)
filnet Feb 19, 2020
9999f53
X11: Fix deadlock when an error occurs during startup (#1475)
murarth Feb 19, 2020
2b14ec2
Fix GitHub Actions (#1479)
murarth Feb 25, 2020
ece2e70
Update image to 0.23 (#1485)
Mar 3, 2020
b8326f6
In control_flow example, don't schedule a new WaitUntil if wait was c…
filnet Mar 6, 2020
71bd6e7
windows: ignore spurious mouse move messages (#1435)
filnet Mar 6, 2020
e707052
Move `ModifiersChanged` variant to `WindowEvent` (#1381)
murarth Mar 6, 2020
cbb60d2
Remove assertions from Windows dark mode code (#1459)
chrisduerr Mar 7, 2020
2f27f64
On Windows, fix request_redraw() related panics (#1461)
filnet Mar 7, 2020
098fd5d
Add ability to create Icons from embedded resources on Windows (#1410)
davidhewitt Mar 7, 2020
b1d8ce2
Use i32 instead of u32 for position type in WindowEvent::Moved (#1502)
Osspial Mar 8, 2020
e85a80d
Fix freeze when pressing modifier keys on Windows (#1503)
Imberflur Mar 8, 2020
b208daa
Revert "on MacOS, Fix not sending ReceivedCharacter event for s… (#1501)
kchibisov Mar 9, 2020
7a9c17a
Bump version to 0.22.0 (#1500)
chrisduerr Mar 9, 2020
29ab0bb
Correct 0.22.0 date
Osspial Mar 9, 2020
0683bdc
Add Unreleased category back to changelog
Osspial Mar 9, 2020
7e04273
Replace Travis and Appveyor CI badges with GitHub Actions CI badge
Osspial Mar 9, 2020
c2aed19
X11: Fix `ResumeTimeReached` being fired early (#1505)
murarth Mar 12, 2020
28023d9
upgrades x11-dl to 2.18.5 to fix #376 (#1517)
Mar 26, 2020
0bc58f6
Fix warnings (#1530)
murarth Apr 10, 2020
a8e777a
Fix a possible double-borrow during event handling (#1512)
Apr 11, 2020
1f24a09
Implement `requestAnimationFrame` for web (#1519)
chemicstry Apr 11, 2020
d560972
Bump version to 0.22.1 (#1537)
Apr 17, 2020
4c4d091
control_flow example: fix wait_cancelled logic again (#1511)
filnet Apr 19, 2020
6dae994
Mention raw-window-handle in library docs (#1528)
Ralith Apr 19, 2020
78a62ec
Added more docs.rs targets (#1521)
simlay Apr 19, 2020
aabe42d
Preserve with_maximized on windows (#1515)
yanchith Apr 19, 2020
849b8f5
Clarify when RedrawRequested is useful (#1529)
Ralith Apr 19, 2020
47ff8d6
Document that platforms will display garbage data in the window by de…
Osspial Apr 20, 2020
54bc41f
Implement `Drop` for `Proxy` on macOS platform (#1526)
hecrj Apr 20, 2020
114fe9d
wayland: rework scale factor handling (#1538)
Matthias-Fauconneau Apr 22, 2020
26775fa
Report mouse motion before click (#1490)
chrisduerr Apr 26, 2020
b4c6cdf
Fix several crashes on Windows by heavily simplifying the event loop …
Osspial May 4, 2020
007b195
iOS: convert touch positions to physical (#1551)
francesca64 May 4, 2020
b882810
add android NDK event loop (#1556)
JasperDeSutter May 6, 2020
3c38afd
Update macOS dependencies (#1554)
j4qfrost May 8, 2020
c7a33f9
Fixed a couple of typos in repo description (#1568)
May 15, 2020
bc19c04
Fixed changelog line for core-* dependencies (#1561)
j4qfrost May 15, 2020
878c179
Implement Clone for 'static events (#1478)
semtexzv May 15, 2020
49bcec1
Release 0.22.2 (#1570)
Osspial May 16, 2020
6cfddfe
Prevent the default browser behavior of events (#1576)
May 21, 2020
ff66bdd
On Wayland, fix deadlock when calling set_inner_size from event loop
kchibisov May 22, 2020
03335ce
macOS: add function to hide other applications
freamon May 24, 2020
a4121a2
platform_impl/linux/x11: fix deadlock in fn set_fullscreen_inner (#1579)
May 27, 2020
5a6cfc3
Macos fullscreen & dialog support with `run_return` (#1581)
VZout Jun 9, 2020
c1ea0dd
On Unix, add option to pick backends
ogoffart Jun 15, 2020
4b1b314
Test x11 and wayland features on CI
murarth Jun 15, 2020
bf62103
Android run return (#1604)
VZout Jun 17, 2020
2191e9e
macOS: Support click-dragging out of a window (#1607)
ozkriff Jun 20, 2020
b1e22aa
Make drag and drop optional (fixes OleInitialize failure #1255) (#1524)
chemicstry Jun 28, 2020
dd866a7
On Windows, fix bug where we'd try to emit `MainEventsCleared` events…
Osspial Jul 2, 2020
3d5d05e
Move available_monitors and primary_monitor to EventLoopWindowTarget …
AdminXVII Jul 4, 2020
6919c2f
Fix misspellings in comments (#1618)
kraai Jul 9, 2020
55dff53
Fix Window platform support documentation
chrisduerr Jul 26, 2020
40232d4
Use `PhysicalPosition` in `PixelDelta` event
chrisduerr Jul 26, 2020
7a49c88
Fix with_fullscreen signature
chrisduerr Aug 1, 2020
05fdcb5
Web: Use mouse events instead of pointer events if the latter isn't s…
hayashi-stl Aug 5, 2020
6810010
android: fix event loop polling (#1638)
msiglreith Aug 12, 2020
514ab04
[macos] add NSWindow.hasShadow support (#1637)
TakWolf Aug 13, 2020
412bd94
Renamed NSString to NSStringRust to support Debug View Heirarchy in X…
simlay Aug 14, 2020
9c72cc2
Fix HiDPI vs. set_cursor_icon for web (#1652)
michaelkirk Aug 17, 2020
89d4c06
Fix crash on NetBSD
chrisduerr Aug 20, 2020
6ba583d
Fix vertical scroll being inverted on web targets (#1665)
alvinhochun Aug 21, 2020
0f7c82d
Send CursorMove before mouse press event and note that touch is unimp…
alvinhochun Aug 22, 2020
bea6093
Use send_events instead of send_event in web backend (#1681)
alvinhochun Aug 26, 2020
02a34a1
Impl. mouse capturing on web target (#1672)
alvinhochun Aug 29, 2020
a2db4c0
Unify Minus/Subtract virtual keycodes
chrisduerr Aug 29, 2020
658a9a4
Handle scale factor change on web-sys backend (#1690)
alvinhochun Aug 30, 2020
e2cf2a5
Fix inverted horizontal scroll on macOS
michaelkirk Sep 6, 2020
cac627e
Make 'current_monitor' return 'Option<MonitorHandle>'
kchibisov Sep 7, 2020
d103dc2
Make 'primary_monitor' return 'Option<MonitorHandle>'
kchibisov Sep 7, 2020
21f9aef
Update macOS dependencies
grovesNL Sep 7, 2020
c66489d
Bump parking_lot to 0.11
lberrymage Sep 9, 2020
e475499
Replace deprecated simple_logger initialization
lberrymage Sep 10, 2020
83c95e7
Explicitly require simple_logger 1.9 for examples
alvinhochun Sep 17, 2020
386ead1
Android: bump ndk versions (#1708)
msiglreith Sep 18, 2020
d612a1b
Prefix numpad virtual key codes with Numpad
kchibisov Sep 20, 2020
1c97a31
Deprecate the stdweb backend (#1712)
Sep 20, 2020
47e7aa4
Add cleanup code to web backend, mostly web-sys (#1715)
alvinhochun Sep 20, 2020
644dc13
web: Emit WindowEvent::Resized on Window::set_inner_size (#1717)
alvinhochun Sep 21, 2020
71e3d25
Rework 'Fullscreen::Borderless' enum variant
kchibisov Sep 22, 2020
c9558c5
Fix view frame in portrait when starting iOS app in landscape (#1703)
MichaelHills Sep 22, 2020
3cd6a18
Fix WindowEvent::Moved ignoring DPI on macOS
kaiwk Sep 23, 2020
9d6b979
Clarify ControlFlow::Poll doc for web (#1725)
alvinhochun Sep 24, 2020
be2e17d
Update readme info regarding WebAssembly and web target (#1726)
alvinhochun Sep 24, 2020
471b1e0
Bump console_log from 0.1 to 0.2
lberrymage Sep 27, 2020
3d85af0
Update SCTK to 0.11.0
kchibisov Sep 28, 2020
b9f3d33
Update SCTK to 0.12
kchibisov Sep 30, 2020
fc336a7
Fix incorrect modifiers state on startup
nixpulvis Oct 2, 2020
d18afb4
Release 0.23.0
kchibisov Oct 2, 2020
676fb94
Added WindowHasFocus and WindowLostFocus events to Android (#1733)
maxded Oct 8, 2020
5a78fe3
Fix failing assertion on start-up with Safari (#1736)
tronical Oct 10, 2020
6343059
Fix Windows transparency behavior to support fully-opaque regions (#1…
jimporter Oct 14, 2020
96809ac
Fix warnings (#1742)
murarth Oct 15, 2020
ee3996c
Feature gate more dependencies
kchibisov Oct 17, 2020
7c543a4
Windows: Fix alt tab bordless fullscreen (#1740)
alexheretic Oct 19, 2020
fbd3918
Add prefix byte for extended scancodes on Windows (#1679)
vickles Oct 19, 2020
037d412
On Wayland, fix 'with_min_inner_size' disabling resize
kchibisov Oct 20, 2020
8aa1be8
On Unix, fix cross-compiling to wasm32
Waridley Oct 22, 2020
66c117e
[Windows] Fix use after free during window destruction (#1746)
qthree Oct 23, 2020
33fb62b
Fix WindowEvent::ReceivedCharacter on web (#1747)
tronical Oct 29, 2020
be850e4
Document Android raw_window_handle requirements (#1749)
Oct 29, 2020
3a077ff
macos: Fix compile on aarch64
scoopr Nov 2, 2020
45e4fd6
X11: Fix `request_redraw` not waking the event loop (#1756)
murarth Nov 5, 2020
cbeb51b
X11: Fix multiple RedrawRequested events per event loop iteration (#1…
murarth Nov 7, 2020
edf396b
On Wayland, add missing mappings for numpad arrows
laanwj Nov 10, 2020
6685960
Rename desktop eventloop extensions to run_return extension (#1738)
msiglreith Nov 12, 2020
1c38f11
Remove println call from Android's eventloop
maxded Nov 19, 2020
165e51d
On Wayland, increase default font size in CSD
kchibisov Nov 21, 2020
77d5d20
Windows: Delayed Message Boxes Fix. (#1769)
VZout Nov 24, 2020
f79efec
Fix deprecation warning in the window icon example
filnet Nov 26, 2020
0861a35
Add 'request_user_attention' to Window
maxded Nov 27, 2020
5700359
Android: support multi-touch (#1776)
maxded Nov 28, 2020
6ddee9a
Ability to force a theme on Windows (#1666)
VZout Nov 30, 2020
8fb7aa5
Android: Improved multi-touch (#1783)
MarnixKuijs Dec 2, 2020
c5620ef
On Wayland, don't drop extra mouse buttons
kchibisov Dec 9, 2020
db038d9
On Windows, implement 'Window::set_ime_position' with IMM API
moko256 Dec 9, 2020
6f70fd9
Windows: Changed thread_event_target_callback's WM_DESTROY to WM_NCDE…
VZout Dec 10, 2020
6db308f
Release 0.24.0
kchibisov Dec 10, 2020
39573d6
Windows: Preserve minimized/maximized state in fullscreen (#1784)
relrelb Dec 13, 2020
932cbe4
On Windows, fix bug causing mouse capture to not be released. (#1797)
SamRodri Dec 15, 2020
c05952b
On Windows, improve handling of window destruction (#1798)
maroider Dec 20, 2020
38fcceb
On Windows, change the default window size (#1805)
maroider Dec 20, 2020
9d63fc7
On Windows, set the cursor icon when the cursor first enters a window…
maroider Jan 5, 2021
d1a7749
Android: Do not mark unhandled events as handled. (#1820)
alula Jan 12, 2021
05fe983
android: Use event identifier instead of userdata pointer (#1826)
MarijnS95 Jan 13, 2021
ae5e58a
Windows gamepads
MarnixKuijs Jan 18, 2021
0512502
On Windows, fix deadlock caused by mouse capture (#1830)
maroider Jan 19, 2021
3f1e09e
Add Window::is_maximized method (#1804)
simast Jan 27, 2021
f79c01b
Fix HINSTANCE returned by raw_window_handle on 64 bit Windows (#1841)
madsmtm Jan 28, 2021
bd99eb1
Android: Bump ndk/ndk-glue to 0.3 and use constants for event ident (…
MarijnS95 Jan 30, 2021
b1d3531
Add ability to assign a menu when creating a window on Windows (#1842)
madsmtm Feb 4, 2021
b9307a9
Change linking of CGDisplayCreateUUIDFromDisplayID on macos (#1626)
Imberflur Feb 5, 2021
b1be34c
fix cursor blinking when clicking decorations bar on Windows (#1852)
Ssaely Feb 6, 2021
5239acf
Merge web
MarnixKuijs Feb 9, 2021
9dd9455
Merge upstream
MarnixKuijs Feb 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Check Formatting
run: cargo +stable fmt --all -- --check

Tests:
strategy:
fail-fast: false
matrix:
rust_version: [stable, nightly]
platform:
- { target: x86_64-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: 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: x11 }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: wayland }
- { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' }
- { target: x86_64-apple-darwin, os: macos-latest, }
- { target: x86_64-apple-ios, os: macos-latest, }
- { target: aarch64-apple-ios, os: macos-latest, }
# We're using Windows rather than Ubuntu to run the wasm tests because caching cargo-web
# doesn't currently work on Linux.
- { target: wasm32-unknown-unknown, os: windows-latest, features: stdweb, cmd: web }
- { target: wasm32-unknown-unknown, os: windows-latest, features: web-sys, cmd: web }

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

runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v2
# 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 }}

- 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 install cargo-apk
- name: Install cargo-web
continue-on-error: true
if: contains(matrix.platform.target, 'wasm32')
run: cargo install cargo-web

- name: Check documentation
shell: bash
if: matrix.platform.target != 'wasm32-unknown-unknown'
run: cargo $CMD doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES

- name: Build
shell: bash
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES

- name: Build tests
shell: bash
run: cargo $CMD test --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 $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES


- name: Build with serde enabled
shell: bash
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES

- name: Build tests with serde enabled
shell: bash
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES
- name: Run tests with serde enabled
shell: bash
if: (
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32'))
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish

on:
push:
branches: [master]
paths: "Cargo.toml"

jobs:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Publish to crates.io
run: cargo publish --token ${{ secrets.cratesio_token }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Cargo.lock
target/
rls/
.vscode/
util/
*~
*.wasm
*.ts
Expand Down
104 changes: 0 additions & 104 deletions .travis.yml

This file was deleted.

Loading