Compare commits

...

6 Commits

Author SHA1 Message Date
Taiki Endo b96ee39889 Release 1.1.0 2023-01-15 23:33:31 +09:00
Taiki Endo d52a96814c Update CI config 2023-01-15 23:33:31 +09:00
Taiki Endo 92d14246cf Update portable-atomic to 1.0 2023-01-15 23:10:57 +09:00
Taiki Endo fa97e5f3f1 Enable dependabot update for Rust 2022-12-28 12:23:20 +09:00
Taiki Endo f1bd28c106 Clean up CI config 2022-12-28 12:23:20 +09:00
Taiki Endo c364256674 Remove msrv field from .clippy.toml
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-12-28 12:23:20 +09:00
6 changed files with 37 additions and 18 deletions

View File

@ -1 +0,0 @@
msrv = "1.36"

9
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
commit-message:
prefix: ''
labels: []

View File

@ -6,11 +6,20 @@ on:
branches:
- master
schedule:
- cron: '0 2 * * *'
- cron: '0 2 * * 0'
env:
RUSTFLAGS: -D warnings
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10
defaults:
run:
shell: bash
jobs:
test:
@ -24,22 +33,20 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- run: cargo build --all --all-features --all-targets
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
if: startsWith(matrix.rust, 'nightly')
run: cargo check -Z features=dev_dep
- run: cargo test
- run: rustup target add thumbv7m-none-eabi
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: rustup target add thumbv7m-none-eabi
- run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps
- run: cargo build --all --all-features --all-targets
- run: cargo hack build --feature-powerset --no-dev-deps
- run: cargo hack build --feature-powerset --no-dev-deps --target thumbv7m-none-eabi
- run: cargo test
msrv:
runs-on: ubuntu-latest
strategy:
matrix:
# When updating this, the reminder to update the minimum supported
# Rust version in Cargo.toml and .clippy.toml.
# Rust version in Cargo.toml.
rust: ['1.36']
steps:
- uses: actions/checkout@v3
@ -78,6 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/audit-check@v1
# https://github.com/rustsec/audit-check/issues/2
- uses: rustsec/audit-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,3 +1,8 @@
# Version 1.1.0
- Support `no_std` platforms. (#7)
- Support `portable-atomic` crate. (#7)
# Version 1.0.0
- Initial version

View File

@ -3,7 +3,7 @@ name = "atomic-waker"
# When publishing a new version:
# - Update CHANGELOG.md
# - Create "v1.x.y" git tag
version = "1.0.0"
version = "1.1.0"
authors = [
"Stjepan Glavina <stjepang@gmail.com>",
"Contributors to futures-rs",
@ -13,15 +13,13 @@ rust-version = "1.36"
description = "A synchronization primitive for task wakeup"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/smol-rs/atomic-waker"
homepage = "https://github.com/smol-rs/atomic-waker"
documentation = "https://docs.rs/atomic-waker"
keywords = ["waker", "notify", "wake", "futures", "async"]
categories = ["asynchronous", "concurrency"]
exclude = ["/.*"]
[dependencies]
# Uses portable-atomic polyfill atomics on targets without them
portable-atomic = { version = "0.3", optional = true, default-features = false }
# Uses portable-atomic polyfill atomics on targets without them
portable-atomic = { version = "1", optional = true, default-features = false }
[dev-dependencies]
futures = "0.3.5"

View File

@ -5,7 +5,7 @@
//! This crate adds a feature, `portable-atomic`, which uses a polyfill
//! from the [`portable-atomic`] crate in order to provide functionality
//! to targets without atomics. See the [`README`] for the [`portable-atomic`]
//! crate for more information on how to use it on single-threaded targets.
//! crate for more information on how to use it.
//!
//! [`portable-atomic`]: https://crates.io/crates/portable-atomic
//! [`README`]: https://github.com/taiki-e/portable-atomic/blob/main/README.md#optional-cfg