25 Commits

Author SHA1 Message Date
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