Skip to content

Commit

Permalink
Minimal 2021 edition update, MSRV -> 1.56, GHA update (#80)
Browse files Browse the repository at this point in the history
* Minimal ed2021 update, and MSRV -> 1.56

* Set MSRV in Cargo.toml

* Use minimal versions for all CI runs

* typo

* Update minimum dep for basic_wasm_bindgen

console_error_panic_hook < 0.1.5 was nightly only. This change was needed to make CI with minimum versions pass. Really, it's a little unnecessary for an example to have an MSRV, but to make this CI work with the fewest modifications it's the easiest option.
  • Loading branch information
Restioson committed Jun 10, 2022
1 parent c3ef497 commit 03ccc88
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
toolchain: [
stable,
beta,
1.54.0 # MSRV
1.56.0 # MSRV
]
args: [
--all-features,
Expand All @@ -22,6 +22,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: nightly

- uses: actions-rs/[email protected]
with:
profile: minimal
Expand All @@ -33,6 +38,8 @@ jobs:
with:
key: ${{ matrix.args }}

- run: cargo +nightly update -Z minimal-versions

- run: cargo fmt -- --check

- run: cargo clippy --workspace --all-targets ${{ matrix.args }} -- -D warnings
Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ name = "xtra"
version = "0.6.0"
description = "A tiny actor framework"
authors = ["Restioson <[email protected]>"]
edition = "2018"
edition = "2021"
license = "MPL-2.0"
repository = "https://github.com/Restioson/xtra"
documentation = "https://docs.rs/xtra"
readme = "README.md"
keywords = ["async", "actor", "futures", "xtra", "async-await"]
categories = ["asynchronous", "concurrency"]
rust-version = "1.56.0"

[dependencies]
async-trait = "0.1.36"
Expand All @@ -18,7 +19,7 @@ catty = "0.1.4"
flume = { git = "https://github.com/Restioson/flume", branch = "sink_to_sender", default-features = false, features = ["async"] }
futures-core = { version = "0.3.5", default-features = false, features = ["alloc"] }
futures-sink = { version = "0.3.5", default-features = false }
futures-util = { version = "0.3.5", default-features = false, features = ["sink"] }
futures-util = { version = "0.3.5", default-features = false, features = ["sink", "alloc"] }
pollster = "0.2"
event-listener = "2.4.0"

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ is recommended in order to enable some convenience methods (such as `Actor::spa
which executor you want to use (check out their docs to learn more about each). If you have any questions, feel free to
[open an issue](https://github.com/Restioson/xtra/issues/new) or message me on the [Rust discord](https://bit.ly/rust-community).

Keep in mind that `xtra` has a MSRV of 1.56.0.

## Cargo features

- `timing`: enables the `notify_interval` method, and brings in the
Expand Down
1 change: 1 addition & 0 deletions examples/basic_wasm_bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ async-trait = "0.1"

[dev-dependencies]
wasm-bindgen-test = { version = "0.3.13", default-features = false }
console_error_panic_hook = "0.1.5" # First version that works on stable

0 comments on commit 03ccc88

Please sign in to comment.