Commit Graph

24 Commits

Author SHA1 Message Date
Jared O'Connell 16325dbafe
Xilem stopwatch example (#492)
This pull request adds a stopwatch example with start, stop, lap, and
reset buttons.
When the stopwatch is active, the stop and lap buttons are visible. When
the stopwatch is not active, the reset and start buttons are example.
To reduce resource usage, I set the timer period to 50ms, and only show
1 decimal place.

<img width="564" alt="Screenshot 2024-08-08 at 10 55 49 AM"
src="https://github.com/user-attachments/assets/4c044653-230b-4f36-b421-1a9aa6bd4486">

This is an older screenshot of what it looks like when it exceeds a day:

<img width="447" alt="Screenshot 2024-08-07 at 10 21 43 PM"
src="https://github.com/user-attachments/assets/57f8887c-83bd-4361-817c-37c76ff4892b">

Also tested on Windows:

![image](https://github.com/user-attachments/assets/71537ccc-11d9-4491-b2f3-5c62bb419896)


Let me know if there are any improvements you see that I can make.

I included the android boilerplate, but I haven't tested it.
2024-08-10 12:44:27 +00:00
Daniel McNab e27b3ce0c2
Run tests in CI, and fix fonts for snapshot testing (#233)
See also linebender/vello#439

This should open the door to doing much more comprehensive testing at
higher level in the nearish future (including e.g. in `xilem_masonry`)
2024-08-05 13:01:47 +00:00
Daniel McNab 3405f6ee69
Support running `calc` on Android (#474)
This works without any other code modifications.

![Xilem Calc on
Android.](https://github.com/user-attachments/assets/b6648c04-bc9e-464c-9a19-0f03e958ade9)
2024-08-01 13:48:58 +00:00
Daniel McNab d70076262d
Update dependencies and bump to Rust 1.80 (#450)
There is one "semi-false-positive" lint triggered, which I have fixed.
Otherwise, the required
```
cargo upgrade --ignore-rust-version
cargo update
```
2024-07-26 13:02:41 +00:00
Olivier FAURE fc6a52265f
Use `cargo-rdme` to sync README and documentation root (#435)
This was remarkably painless.

I especially appreciate @taiki-e providing an install-action which does
90% of the CI work for us.

---------

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
2024-07-22 12:44:41 +00:00
Bruce Mitchener d71db1a1bc
ci: Update typos action to 1.23.2 from 1.22.9 (#441) 2024-07-22 11:15:35 +00:00
Daniel McNab 7f40266bd8
Integrate `tokio` for async communication with Xilem (#423)
Supercedes https://github.com/linebender/xilem/pull/411

This is designed with #417 in mind, to not lock-in to our event loop.

---------

Co-authored-by: Philipp Mildenberger <philipp@mildenberger.me>
2024-07-18 07:38:28 +00:00
Daniel McNab 7a28babdd6
Allow Masonry to compile in release mode (#431)
Cc @xStrom for the CI change

Cc @PoignardAzur for the Masonry changes
2024-07-17 09:52:37 +00:00
Daniel McNab 032e86216a
Update to our latest CI standard (#414)
This was most recently updated in
https://github.com/linebender/vello/pull/505

The main differences are:
1) Greater concurrency between clippy and testing
2) More explanations
3) MSRV checking
4) Use of `cargo hack`
5) WASM checked in CI

I've also added the current values of our MSRVs to the main three
crates.
2024-06-28 13:02:54 +00:00
Bruce Mitchener c8725dcc41
Update stable Rust version to 1.79 (#399) 2024-06-16 07:13:32 +00:00
Bruce Mitchener 66e141ab8f
ci: Update stable Rust. (#317) 2024-05-26 15:22:32 +00:00
Jonas Platte 9c1eb3b2fe
Check for typos in CI (#306)
Currently, the only legit typo being found is `seeked` but I'm not sure
what to do about that.

Would be nice to check for new typos in CI anyways, right?

---------

Co-authored-by: Kaur Kuut <strom@nevermore.ee>
2024-05-17 06:39:32 +00:00
Kaur Kuut 76e96dc8f5
Standardize copyright headers. (#246)
* Add the Linebender standard copyright header to all Rust source files.
    - Copyright year is based on the original file creation date.
- Files that are based on other projects, mostly Druid, get the correct
credit.
- Files that were built from scratch for Xilem but had copy-pasted Druid
headers get those headers corrected.
* Add copyright header check to CI.
* Add dedicated `LICENSE` files to each package to ensure it is part of
the crates.io source distribution.
* Add `AUTHORS` file to list most of the top contributors.
- It does not need to be complete and additional entries are welcome via
PRs.
2024-05-03 08:50:39 +00:00
Daniel McNab 69ac0807b9
Create a minimal xilem_masonry (#205)
* Create a minimal xilem_masonry

* Add a first draft of view sequences

* Implement a flex view

* Fix clippy

Some of these suggestions are kind of bad
but that's by-the-by

* Update CI to 1.77

* Skip masonry docs in CI

* Clippy, again

* Fix clippy

* Skip render snapshot tests

* Skip testing which needs rendering on CI

* Add tuple sequences

* Address review comments and clippy
2024-04-25 12:27:37 +00:00
Aaron Muir Hamilton 21a84d6973
Bump vello and remove wgpu override. (#179) 2024-03-02 22:09:27 +00:00
Kaur Kuut 21d6579a22
Bump Rust stable toolchain to 1.74. (#145) 2023-11-16 19:38:44 +00:00
Kaur Kuut 8431894ea8
Bump Rust stable toolchain to 1.73. (#137) 2023-10-12 15:04:48 +00:00
Kaur Kuut 3465ddefaa
Migrate to the generic Linebender CI script. (#135) 2023-09-12 17:50:50 +03:00
Philipp Mildenberger 2ccc427f99
Add `cargo test` to the actions workflow (#126)
It currently tests all crates and runs all tests regardless of failure.
2023-08-08 20:09:01 +02:00
Philipp Mildenberger a87a967ca6
Added `cargo clippy` to the CI workflows and fixed/disabled a few clippy lints (#101) 2023-07-28 19:00:02 +02:00
Bruce Mitchener ddb49cf91a ci: Check that source is formatted. 2023-07-13 23:26:50 +07:00
Bruce Mitchener 329c68e6ce ci: Run on macOS-latest, windows-2019, ubuntu-latest.
Previously, this was only running on windows-2019.
2023-07-13 23:26:22 +07:00
Bruce Mitchener 03690b379f ci: Add Swatinem/rust-cache.
This should help reduce CI times.
2023-07-13 23:26:22 +07:00
Daniel McNab 7fce02fd41
Create initial CI (#2)
We don't deny warnings in CI because we currently have warnings.

Once #1 lands, we can enforce cleanliness from warnings

See also d0b9e1905c
as we only use windows at the moment
2022-11-17 09:30:42 +00:00