Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Masonry crate #203

Merged
merged 2,491 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2491 commits
Select commit Hold shift + click to select a range
605d939
Fix clippy (replace extend + drain with append) (#1933)
sigaloid Aug 21, 2021
aeaa043
Bump the version of GTK, cairo, etc
JAicewizard Jul 1, 2021
5b558cc
Remove direct dependencies and use gtk::*
JAicewizard Jul 1, 2021
0bcc411
Remove replace in root
JAicewizard Jul 1, 2021
b8b11b6
Bump piet
JAicewizard Aug 21, 2021
71d67fd
Fix rebasing issue
JAicewizard Aug 21, 2021
31f4577
Fix cargo.toml
JAicewizard Aug 21, 2021
fcc8597
Fix #1927 (#1930)
maan2003 Aug 22, 2021
9792c5a
impl PartialEq for WindowConfig and WindowLevel
maan2003 Aug 20, 2021
5248f67
WindowDesc::with_config
maan2003 Aug 20, 2021
0f667c7
example/blocking_function: add log_to_console (#1926)
maan2003 Aug 22, 2021
ca451b3
InputComponent: request_paint on selection change (#1932)
maan2003 Aug 23, 2021
94674dc
TextBox: handle SELECT_ALL (#1931)
maan2003 Aug 23, 2021
619ddb6
Update CONTRIBUTING.md
PoignardAzur Aug 7, 2021
dad0c7a
Add community-made logo to the README and documentation.
PoignardAzur Aug 12, 2021
fe189cd
Update CI config file to optimize CI times.
PoignardAzur Aug 24, 2021
3e7b5dc
Add ui tests for Panoramix derive
PoignardAzur Aug 7, 2021
313af5e
Add DebugState
PoignardAzur Jun 6, 2021
232314d
impl Clone for LabelText (#1940)
maan2003 Aug 30, 2021
fdc7562
Add psst (#1949)
Sep 2, 2021
eda68a5
ExtEventSink::add_idle_callback
maan2003 Sep 5, 2021
d39a6a5
example/async_event: use ExtEventHandle::add_idle_callback
maan2003 Sep 5, 2021
1c21ebc
Suggestions from clippy
maan2003 Sep 5, 2021
7f4d0ce
More docs and only debug_panic in case of type mismatch
maan2003 Sep 5, 2021
8fc3e5f
Update lens.ms -- fix typo (#1957)
Jerboas86 Sep 8, 2021
ebe2fb7
x11: invalidate_rect expand the rect properly (#1947)
maan2003 Sep 10, 2021
393774a
Fix custom_widget example bounded logic, fixes #1959 (#1961)
timakro Sep 11, 2021
650ae0d
Check if gtk is initialised in get_monitors before assuming so in `ge…
JAicewizard Sep 12, 2021
c93a7c4
Fix the ListIter implementation for Vector (#1967)
xarvic Sep 13, 2021
bb4cfa1
Create ultra-basic druid fork.
PoignardAzur Sep 14, 2021
d07d548
Remove superfluous imports and Debug commands.
PoignardAzur Sep 14, 2021
71c8deb
Add spacing in event enums
PoignardAzur Sep 23, 2021
d726dd7
Rename 'gui-ir' to 'widget-cruncher'
PoignardAzur Sep 23, 2021
5f1fd0f
Remove update() method.
PoignardAzur Sep 23, 2021
c92c338
Remove id method
PoignardAzur Sep 23, 2021
3b0f3f6
Add simple example
PoignardAzur Sep 23, 2021
8b60195
Rename Widget::event to on_event
PoignardAzur Sep 23, 2021
95e9e81
Remove Data parameter from Widget trait.
PoignardAzur Sep 24, 2021
e72024c
Remove Data type parameter from all types
PoignardAzur Sep 24, 2021
1280f4c
Remove test harness files
PoignardAzur Sep 24, 2021
5c070d1
Move window handling files to separate folder.
PoignardAzur Sep 24, 2021
a5ed120
Reoarganize window handling modules.
PoignardAzur Sep 27, 2021
3879583
Remove "missing docs" warning
PoignardAzur Sep 27, 2021
ea874b2
Remove druid::shell alias.
PoignardAzur Sep 27, 2021
0d2860e
Reorganize window handling modules again.
PoignardAzur Sep 27, 2021
6d402b8
Update TODO list
PoignardAzur Sep 27, 2021
fe81afd
Remove Command
PoignardAzur Sep 27, 2021
54690bf
Remove unused imports
PoignardAzur Sep 27, 2021
e97a85e
Remove Dialog
PoignardAzur Sep 27, 2021
cf538e0
Remove ExtEvent
PoignardAzur Sep 27, 2021
fc5ba04
Remove localization.
PoignardAzur Sep 27, 2021
4f435df
Remove scroll_component
PoignardAzur Sep 27, 2021
ffef99c
Rename "window_handling" to "platform".
PoignardAzur Sep 27, 2021
f094627
Run rustfmt
PoignardAzur Sep 27, 2021
c382afc
Add AsWidgetPod trait and widget() method.
PoignardAzur Sep 28, 2021
7e2866e
Add checks that events are properly recursed.
PoignardAzur Sep 28, 2021
8969a08
Remove uses of LabelText
PoignardAzur Sep 30, 2021
34f44ec
Remove superfluous turbofishes
PoignardAzur Oct 1, 2021
9ef46ab
Remove LabelText
PoignardAzur Oct 1, 2021
065358f
Reorder imports.
PoignardAzur Oct 1, 2021
1cbb9ce
Add test harness.
PoignardAzur Oct 1, 2021
b5aa8bd
Remove RawLabel
PoignardAzur Oct 1, 2021
fd940e7
Split core.rs in different files
PoignardAzur Oct 2, 2021
9850739
WIP: Add test files from Druid
PoignardAzur Oct 2, 2021
e32359b
Remove old_data and fix WidgetAdded notification.
PoignardAzur Oct 2, 2021
058b42d
Reorder WidgetPod methods.
PoignardAzur Oct 2, 2021
3f3ccbf
Refactor "find child" methods.
PoignardAzur Oct 2, 2021
fbf2ddc
Doc comment
PoignardAzur Oct 2, 2021
096d5a6
Rename *Ctx.state to *Ctx.global_state
PoignardAzur Oct 2, 2021
1447d65
Remove uses of "child" in WidgetPod.
PoignardAzur Oct 2, 2021
d77e5d4
Improve error messages for widget implementation errors.
PoignardAzur Oct 2, 2021
6f7a2e6
Rename "recurse" to "call_inner"
PoignardAzur Oct 2, 2021
6138806
Remove Size event.
PoignardAzur Oct 2, 2021
1aa74e5
Split out Lifecycle variants into StatusChange event.
PoignardAzur Oct 4, 2021
eba97c9
Add downcast method to Widget
PoignardAzur Oct 4, 2021
824c713
Remove UpdateCtx
PoignardAzur Oct 4, 2021
be3c8c0
Add first elements of pass system
PoignardAzur Oct 4, 2021
31a6822
Run rustfmt
PoignardAzur Oct 4, 2021
dfc5779
Restore Commands and Notifications.
PoignardAzur Oct 4, 2021
f23a7e2
Add SizedBox
PoignardAzur Oct 5, 2021
fbaf8a1
Add first lifecycle test.
PoignardAzur Oct 5, 2021
7ada622
Rework traces.
PoignardAzur Oct 5, 2021
f72f6e9
Add "adding_child" lifecycle test.
PoignardAzur Oct 5, 2021
32647cf
Add child tracking tests.
PoignardAzur Oct 5, 2021
430fe4c
Rename lifecycle tests
PoignardAzur Oct 5, 2021
6d017f1
Add lifecycle focus tests.
PoignardAzur Oct 5, 2021
5d8caa0
Reorder imports.
PoignardAzur Oct 5, 2021
3e91d21
Add new checks on Widget methods.
PoignardAzur Oct 5, 2021
cce0e91
Add invariant checks to WidgetPod.
PoignardAzur Oct 6, 2021
4881288
Fix comment typo
PoignardAzur Oct 6, 2021
a375690
Restore ext_event
PoignardAzur Oct 6, 2021
99c1aa0
Updating tracing spans.
PoignardAzur Oct 6, 2021
115dd38
Add Spinner
PoignardAzur Oct 8, 2021
eb814de
Add run_in_background() method
PoignardAzur Oct 8, 2021
289650a
Rework Flex with mutating methods.
PoignardAzur Oct 8, 2021
4be441a
Add blocking_function example.
PoignardAzur Oct 8, 2021
2f80dc0
Implement Promises
PoignardAzur Oct 10, 2021
65984c2
Add simple image.
PoignardAzur Oct 11, 2021
fb396eb
Add WebImage.
PoignardAzur Oct 11, 2021
1420076
Minor fixes
PoignardAzur Oct 12, 2021
6d4ed2d
Add ClipbBox
PoignardAzur Oct 12, 2021
78c5690
Revert changes to Lifecycle::DisableChanged
PoignardAzur Nov 12, 2021
2ec7c5b
Update to edition 2021
PoignardAzur Nov 12, 2021
d4b5d63
Reorganize tests
PoignardAzur Nov 27, 2021
c848194
Remove methods giving mut access to WidgetState
PoignardAzur Nov 27, 2021
6b40e3c
Add initial version of WidgetView
PoignardAzur Jan 5, 2022
c4c7120
Add some WidgetView methods
PoignardAzur Jan 7, 2022
052c94d
Add Roadmap
PoignardAzur Jan 7, 2022
c4f02af
Add basic DebugLogger
PoignardAzur Jan 20, 2022
c4ba1cc
Update debug logger
PoignardAzur Jan 25, 2022
dce1872
Add debug logger to global state
PoignardAzur Feb 7, 2022
2c1f645
Add breaker to debug logger
PoignardAzur Feb 7, 2022
6756504
Add coverage profile
PoignardAzur Feb 7, 2022
2889cf8
Fix blocking_function example
PoignardAzur Feb 7, 2022
e1d6464
Clean up tests
PoignardAzur Feb 7, 2022
e03d735
Reorder Cargo.toml
PoignardAzur Feb 8, 2022
399c697
Add misc tests and coverage annotations
PoignardAzur Feb 8, 2022
336c0fa
Add checks to ROADMAP
PoignardAzur Feb 8, 2022
499df48
Fix coverage annotations
PoignardAzur Feb 8, 2022
b734160
Replace AsWidgetPod with WidgetRef
PoignardAzur Feb 10, 2022
4c55df7
Remove a lifetime parameter from WidgetView
PoignardAzur Feb 10, 2022
0eb8883
Fix method name
PoignardAzur Feb 10, 2022
28f3c8e
Fix regression in debug checking
PoignardAzur Feb 10, 2022
51651c7
Implement Debug for WidgetRef
PoignardAzur Feb 10, 2022
3b0346a
Update dependencies
PoignardAzur Feb 11, 2022
97293f7
Add notes on future Widget features to implement
PoignardAzur Feb 11, 2022
61f4c88
Add snapshot testing for widget renders
PoignardAzur Feb 13, 2022
9befbb4
Add missing test snapshots
PoignardAzur Feb 15, 2022
6d11e4b
Fix how test harness handles screenshots and invalidation
PoignardAzur Feb 15, 2022
8303b75
Refactor Label to use WidgetView
PoignardAzur Feb 15, 2022
93947c0
Update Roadmap
PoignardAzur Feb 15, 2022
d45d0dd
Replace assert with debug_assert in event code
PoignardAzur Feb 15, 2022
1e25f24
Add more stuff to roadmap
PoignardAzur Feb 15, 2022
02ce12c
Add timers to test harness
PoignardAzur Feb 16, 2022
db83b2a
Clean up imports and unused code
PoignardAzur Feb 16, 2022
d4db1f7
Add impl Deref for WidgetRef
PoignardAzur Feb 16, 2022
be6bedf
Add note to harness doc
PoignardAzur Feb 16, 2022
9e84daf
Add note to widget_ids
PoignardAzur Feb 16, 2022
7215766
Refactor AppRoot and WinHandler
PoignardAzur Feb 20, 2022
d1db6e2
Add notes regarding druid-shell renaming
PoignardAzur Feb 20, 2022
dfbcca8
Sort WidgetState fields
PoignardAzur Feb 21, 2022
fca7588
Re-organize roadmap
PoignardAzur Feb 27, 2022
d523ea3
Add Action queue
PoignardAzur Feb 27, 2022
fe5806e
Add AppDelegate
PoignardAzur Mar 3, 2022
d463b71
Add downcasting to WidgetRef and WidgetView
PoignardAzur Mar 4, 2022
107cc34
Monkey patch widget edition in AppDelegate
PoignardAzur Mar 4, 2022
9172686
Fix dependency errors
PoignardAzur Mar 5, 2022
6d635fb
Add edit_root_widget method to harness
PoignardAzur Mar 6, 2022
a1c244f
Add "edit" test to Label
PoignardAzur Mar 6, 2022
c982ae3
Implement WidgetView with Button
PoignardAzur Mar 6, 2022
014572f
Update checkbox and button
PoignardAzur Mar 6, 2022
a34aa48
Remove Click
PoignardAzur Mar 6, 2022
0d01132
Integrate Flex into WidgetView
PoignardAzur Mar 7, 2022
ea76a84
Integrate Image into WidgetView
PoignardAzur Mar 7, 2022
80b6db5
Integrate Spinner into WidgetView
PoignardAzur Mar 7, 2022
9714a7f
Rename ContextState to GlobalPassCtx
PoignardAzur Mar 7, 2022
eb4f15d
Integrate SizedBox into WidgetView
PoignardAzur Mar 24, 2022
5a70aa7
Fix tests
PoignardAzur Mar 26, 2022
2bf66a7
Add WidgetAdded "safety rail" test
PoignardAzur Mar 26, 2022
dbd23c2
Small roadmap changes
PoignardAzur Mar 26, 2022
a8cb64d
Implement Portal
PoignardAzur Mar 29, 2022
1b8793b
Implement ScrollBar
PoignardAzur Jul 4, 2022
ac8e158
Fix on_event bug
PoignardAzur Jul 4, 2022
244a1dc
Add visual snapshot diffs to .gitignore
PoignardAzur Jul 4, 2022
567ac56
Update ROADMAP
PoignardAzur Jul 4, 2022
8f359c3
WIP: Add text input to test harness
PoignardAzur Jul 5, 2022
86cb780
WIP: Reimplement TextBox
PoignardAzur Jul 8, 2022
19669c4
Add unit tests to TextBox
PoignardAzur Jul 10, 2022
a43d451
Small ROADMAP changes
PoignardAzur Jul 10, 2022
e70d849
Rename WidgetView to WidgetMut
PoignardAzur Jul 10, 2022
b6f81f8
Rename widget_view.rs to widget_mut.rs
PoignardAzur Jul 10, 2022
b886596
Split WidgetRef into separate file
PoignardAzur Jul 11, 2022
cc7ad5d
Fix examples
PoignardAzur Jul 16, 2022
11fa28c
Move timers to GlobalPassCtx
PoignardAzur Jul 16, 2022
d0a20cf
Remove dead code
PoignardAzur Jul 16, 2022
c89b4a1
Rename Application as AppHandle
PoignardAzur Jul 16, 2022
f522460
Add concept of stashed widget
PoignardAzur Jul 16, 2022
9c240c8
Reformat safety_rails tests
PoignardAzur Jul 16, 2022
e8321e1
Fix safety_rail tests error messages
PoignardAzur Jul 17, 2022
5d63ffa
Add sanity checks for display_rect
PoignardAzur Jul 17, 2022
2b2d28c
Rename set_origin to place_child
PoignardAzur Jul 17, 2022
6a8e678
Procrastinate on roadmap item
PoignardAzur Jul 17, 2022
19d6db0
Split off from Druid repository
PoignardAzur Oct 3, 2022
c7aea04
Fix compilation errors in release mode
PoignardAzur Oct 3, 2022
398c261
Rename crate to 'masonry'
PoignardAzur Oct 3, 2022
81a6dd7
Fix repository address
PoignardAzur Oct 3, 2022
0fb63c8
Add Github Actions config
PoignardAzur Oct 3, 2022
5679377
Fix WidgetMut trait
PoignardAzur Oct 14, 2022
71be7fc
Reorder imports in whole project
PoignardAzur Oct 14, 2022
5a559d9
Rearrange roadmap
PoignardAzur Oct 18, 2022
21f9ce7
Add declare_widget macro
PoignardAzur Oct 18, 2022
9b1c093
Add utility methods to WidgetMut
PoignardAzur Oct 19, 2022
ce6cb1b
Update roadmap
PoignardAzur Oct 19, 2022
edb158b
Rename built-incommands
PoignardAzur Oct 19, 2022
1c77e43
Refactor application code for public consumption.
PoignardAzur Oct 26, 2022
401c94e
Reorder declarations and document everything
PoignardAzur Nov 3, 2022
66c0956
Update to Rust 1.65
PoignardAzur Nov 4, 2022
eeba05a
Reorder imports
PoignardAzur Dec 17, 2022
5524aca
Fix declare_widget macro
PoignardAzur Dec 17, 2022
f9e2a0e
Add Split widget
PoignardAzur Dec 17, 2022
554829a
Add background, borders and rounded corners to SizedBox.
PoignardAzur Dec 17, 2022
ff71dd6
Add Align widget
PoignardAzur Dec 17, 2022
880fa05
Add "Other" variant to Action
PoignardAzur Dec 18, 2022
8bc4468
Add "calculator" and "custom widget" examples from Druid
PoignardAzur Dec 18, 2022
4c51374
Add readme to example/ folder
PoignardAzur Dec 18, 2022
a7986e5
Streamline copyright notices
PoignardAzur Dec 18, 2022
4f849a7
Update roadmap
PoignardAzur Dec 18, 2022
475fd0c
Add copyright notice to snapshot_utils
PoignardAzur Dec 18, 2022
1e0ace1
Fix doc tests
PoignardAzur Dec 18, 2022
f6b3bd8
Replace all stale references to Druid
PoignardAzur Dec 18, 2022
8be4b35
Remove leftover comment tags
PoignardAzur Dec 18, 2022
6a77749
Trim comments and add references to Github issues
PoignardAzur Dec 27, 2022
2c49127
Add textbox to todo list example
PoignardAzur Dec 27, 2022
a675910
Deactivate debug logger in harness
PoignardAzur Dec 27, 2022
16b08b8
Remove "init checking" from context types.
PoignardAzur Dec 27, 2022
f537580
Remove TODO comment
PoignardAzur Jan 24, 2023
19ce980
Add small TODO comment
PoignardAzur Jan 24, 2023
54b2621
Write first version of ARCHITECTURE.md
PoignardAzur Jan 24, 2023
e8341de
Update roadmap
PoignardAzur Jan 24, 2023
a2b20a9
Write CONTRIBUTING.md
PoignardAzur Jan 24, 2023
9b35526
Complete ARCHITECTURE.md
PoignardAzur Jan 25, 2023
06d1261
Write README and top-level documentation.
PoignardAzur Jan 25, 2023
27371be
Fix up README and ROADMAP
PoignardAzur Jan 25, 2023
05c5feb
Fix some clippy lints
PoignardAzur Jan 25, 2023
c23994d
Tweak format of links in doc comments.
PoignardAzur Jan 25, 2023
ab5adf3
Add TODO comment to declare_widget
PoignardAzur Jan 25, 2023
1ea3ba2
Add light styling to todo list example
PoignardAzur Jan 31, 2023
7c576f3
Finis ARCHITECTURE.md
PoignardAzur Feb 2, 2023
f946e77
Update roadmap
PoignardAzur Feb 2, 2023
54fedfa
Update todo list example
PoignardAzur Feb 2, 2023
ab087b6
Bump version number
PoignardAzur Feb 2, 2023
32608a6
Update druid_shell dependency
PoignardAzur Feb 5, 2023
3e72cef
Bump version number for no reason
PoignardAzur Feb 5, 2023
935cb3c
Remove part about Widget Inspector
PoignardAzur Feb 5, 2023
6eaf007
Add links and fix a typo in README (#28)
cmpute Feb 6, 2023
58c1a44
Added Italian Language (#33)
albertoslavicadev Feb 10, 2023
f228619
Fix #34 (#35)
WeetHet Feb 10, 2023
4679923
Fix various build problems and remove WebImage (#37)
PoignardAzur Feb 10, 2023
55f6a60
`declare_widget` makes a struct now (#29)
TmLev Feb 11, 2023
3cfc2cd
Fix Textbox text position and Textbox size (#40)
bitec0de Feb 20, 2023
e7ef87a
Bump version number and format manifest file (#50)
PoignardAzur Jan 16, 2024
4ae3309
Update CONTRIBUTING.md (#52)
PoignardAzur Feb 19, 2024
2d27d8c
Remove Env type and Data trait (#54)
PoignardAzur Mar 26, 2024
a67ded5
[doc] Improve markdown usage in `TaffyLayout` docs. (#199)
waywardmonkeys Apr 15, 2024
8b29498
[deps] Use release of peniko. (#200)
waywardmonkeys Apr 15, 2024
041ea0d
Remove `test-log` and `env_logger`. (#201)
waywardmonkeys Apr 16, 2024
9a118da
xilem_web: Support arrays (`impl IntoClasses for [impl IntoClasses; N…
Philipp-M Apr 16, 2024
10c6de6
Port to vello and winit (#56)
PoignardAzur Apr 19, 2024
0d4d55d
Fix calc example (#59)
PoignardAzur Apr 19, 2024
38c2cfa
Add 'crates/masonry/' from commit '0d4d55dce0657474360df9d07b3c102534…
PoignardAzur Apr 19, 2024
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
141 changes: 6 additions & 135 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,3 @@ tracing = "0.1.37"
fnv = "1.0.7"
instant = { version = "0.1.6", features = ["wasm-bindgen"] }
winit = { version = "0.29", features = ["rwh_05"] }

[dev-dependencies]
env_logger = "0.10.0"
test-log = "0.2.11"
9 changes: 9 additions & 0 deletions crates/masonry/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[target.'cfg(all())']
# TODO - Replace with Cargo.toml config
rustflags = [
# Global lints/warnings.
# We do this here instead of in the crate root because we want to apply
# these to example and test targets as well.
"-Aclippy::single_match",
"-Aclippy::bool_assert_comparison",
]
126 changes: 126 additions & 0 deletions crates/masonry/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
on:
push:
branches:
- master
pull_request:

env:
SKIP_RENDER_SNAPSHOTS: 1

jobs:
rustfmt:
runs-on: ubuntu-latest
name: cargo fmt
steps:
- uses: actions/checkout@v2

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

test-stable:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, windows-2019, ubuntu-latest]
name: cargo clippy+test
steps:
- uses: actions/checkout@v2

- name: install libx11-dev
run: |
sudo apt update
sudo apt install libx11-dev libpango1.0-dev libxkbcommon-dev libxkbcommon-x11-dev
if: contains(matrix.os, 'ubuntu')

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
profile: minimal
override: true

- name: restore cache
uses: Swatinem/rust-cache@v2

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --no-default-features

# We use --all-targets to skip doc tests; we run them in a parallel task
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets --no-default-features

doctest-stable:
runs-on: macOS-latest
name: doctests
steps:
- uses: actions/checkout@v2

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: restore cache
uses: Swatinem/rust-cache@v2

- name: cargo test --doc
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --no-default-features

# This tests the future rust compiler to catch errors ahead of time without
# breaking CI
# We only run on a single OS to save time; this might let some errors go
# undetected until the compiler updates and they break CI; but that should
# happen rarely, and not pose too much of a problem when it does.
test-beta:
runs-on: macOS-latest
name: cargo clippy+check beta
steps:
- uses: actions/checkout@v2

- name: install beta toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: beta
components: clippy
profile: minimal
override: true

- name: restore cache
uses: Swatinem/rust-cache@v2

- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
continue-on-error: true

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --no-default-features
continue-on-error: true
Loading