37 Commits

Author SHA1 Message Date
dbr
2d5df3a0f1 Reenable vcpkg in windows CI 2023-01-12 12:01:23 +10:30
Ruifeng Xie
59b67c14c0
feature-gate vcpkg 2022-11-30 13:20:14 +08:00
dbr
45c2d28ced Missed one 1.56 -> 1.57 2022-09-26 21:33:10 +09:30
dbr
5d14676362 Bump MSRV to 1.57
Needed by ~glutin
2022-09-26 19:35:05 +09:30
dbr
4ad2b7f3bd Update MSRV to 1.56
The winit->x11-dl 2.22.0 dependency now requires the 2021 edition which forces us to at least Rust 1.56 (at least on Linux)
2022-08-18 15:19:10 +09:30
dbr
f58744e579 Fix CI
--all-features doesn't do as expected, just list all (two) features we want to test
2022-04-30 10:12:56 -04:00
dbr
c032408329 sudo rm -rf old-winit
Somewhat experimental removal of old winit versions, to reduce maintenance burden

Significantly reduces (around half) the length of winit-support, should reduce amount of work done in CI
2022-04-30 10:12:56 -04:00
Jack OntheGoMac
ce22eb3da5 updated CI 2021-12-23 13:02:44 -08:00
Connor Fitzgerald
c8b1647255 Support winit-0.26 2021-12-21 21:10:35 -05:00
dbr
6e7644cec8 Test docking feature 2021-11-15 23:08:42 +11:00
Jack Mac
c62c609de5 making us have good links 2021-09-13 17:12:27 -04:00
Jack Mac
04af6ab69a updating msrv to 1.54
Added a "get out of jail free" card in the min-const-generics feature
2021-09-13 13:03:13 -04:00
Jack Spira
bb43463c2e updating CI to handle master -> main change 2021-09-09 19:45:17 -07:00
dzil123
b378477d64 Add winit 0.25 to CI and xtask 2021-09-05 23:24:24 -07:00
dzil123
9d34370989 Create dummy feature to fix clippy --all-features 2021-09-05 23:23:55 -07:00
dzil123
43e2381c93 Workaround for CI clippy --all-features 2021-09-05 23:23:38 -07:00
dzil123
b3cf8ca4a6 Re-enable winit default features during CI 2021-09-05 23:23:38 -07:00
dbr
13580e0407 Gentle nudge towards a MSRV [#402]
Run CI against 1.48 as well as stable and beta

Replace use of `bool_to_option` as it's in xtask, and would otherwise bump ~required version to 1.50
2021-08-22 23:01:11 +10:00
Thom Chiovoloni
1c5d8c368c Actually run doctests in CI, fix failing ones 2021-03-06 07:10:48 -08:00
Thom Chiovoloni
4f1cde06f2 ImColor changes and improvements:
- Renamed to `ImColor32` to avoid confusion with `ImColor` from the C++.
  code: https://github.com/ocornut/imgui/blob/9499afdf/imgui.h#L2180
    - Eventually I'd probably like to add something mirroring the actual
      `ImColor`.

- Now supports construction and access from `const fn` where possible.
    - Still impossible for the `f32` APIs

- Now supports `.r`/`.g`/`.b`/.a` field access (read and write), by way
  of a new type `imgui::color::ImColor32Fields`, which essentially
  exists just to serve this purpose. This is a bit cludgey, but lets us
  provide the ability for reading and writing `r/g/b/a` values without
  adding many `fn get_r(self) -> u8` and `fn set_r(&mut self, r: u8);`
  style functions.

- No longer requires FFI calls to construct from RGB floats.
    - This gives much more freedom to the optimizer, as external calls
      are impenetrable optimization barriers (It has to pessimistially
      assume that they read/write to all globally accessable memory, and
      must be called in the exact order that is listed).
    - Also, it allows inlining these calls, and avoid computing the same
      value twice (if the args are the same).

    - Also improves usage from IDEs, debuggers, etc, and avoids a rare
      possibility of UB if NaN was passed in (however, this almost
      certainly could only cause problems if cross-lang LTO was used,
      which I believe we don't support).

    - This code is more complex than needed, but was taken from another
      project of mine (functions were renamed to line up with imgui's
      names), and has good (literally exhaustive) test coverage.

    - Unfortunately, float arithmetic in const fn is still not allowed,
      so for now these aren't usable `const fn`.

- Added utility constants to mirror the `IM_COL32_WHITE`,
  `IM_COL32_BLACK`, `IM_COL32_BLACK_TRANS` constants.
2021-02-01 01:45:39 -08:00
Thom Chiovoloni
64a8d3260d Attempt to bludgeon the winit/glium/gfx versions into submission 2020-12-31 19:32:44 -08:00
Thom Chiovoloni
e7b8af5939 Fix CI 2020-12-07 21:17:13 -08:00
Thom Chiovoloni
04fce1ed28 Readme, ci 2020-12-06 09:32:21 -08:00
Thom Chiovoloni
1eb2a3e272 Ugh, okay, alright, imgui-sys-bindgen is a problem for another day 2020-12-06 09:32:21 -08:00
Thom Chiovoloni
0df089ab29 Move to virtual workspace 2020-12-06 09:32:21 -08:00
Thom Chiovoloni
413ecc05a0 Don't share target cache between lint and tests (CI) 2020-12-06 02:24:59 -08:00
Thom Chiovoloni
63a4ae45a9 Use restore-keys in gha caching 2020-12-05 23:32:54 -08:00
Thom Chiovoloni
12d6f03776 Add caching to CI 2020-12-05 23:32:54 -08:00
Thom Chiovoloni
e585291e4d fix lint errors and ensure examples actually are linted 2020-12-05 23:32:54 -08:00
Thom Chiovoloni
f375007f26 remove github actions boilerplate and redundant tasks, increase GHA parallelism 2020-12-05 23:32:54 -08:00
Joonas Javanainen
a990a538b6
Glutin requires Rust 1.43 :( 2020-11-15 11:14:32 +02:00
Max de Danschutter
6658b91f25 Updated the changelog, readme, and CI (minimum rust support 1.41) 2020-11-10 10:08:03 +01:00
Gabriel Smith
8e5cf2c1d9 Test winit 0.22 support in CI 2020-05-18 15:12:38 -04:00
Joonas Javanainen
c99720abdc
Bump minimum Rust to 1.40 2020-04-18 12:42:21 +03:00
Joonas Javanainen
e1620a0582
Remove caching 2020-01-20 09:40:53 +02:00
Joonas Javanainen
b37f113062
Bump minimum Rust version to 1.38 2020-01-20 09:14:23 +02:00
Joonas Javanainen
e9fef5c12c
Switch to Github Actions 2020-01-12 13:18:12 +02:00