Compare commits
6 Commits
7c07f0f090
...
b96ee39889
Author | SHA1 | Date |
---|---|---|
Taiki Endo | b96ee39889 | |
Taiki Endo | d52a96814c | |
Taiki Endo | 92d14246cf | |
Taiki Endo | fa97e5f3f1 | |
Taiki Endo | f1bd28c106 | |
Taiki Endo | c364256674 |
|
@ -1 +0,0 @@
|
|||
msrv = "1.36"
|
|
@ -0,0 +1,9 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: cargo
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
commit-message:
|
||||
prefix: ''
|
||||
labels: []
|
|
@ -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 }}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
# Version 1.1.0
|
||||
|
||||
- Support `no_std` platforms. (#7)
|
||||
- Support `portable-atomic` crate. (#7)
|
||||
|
||||
# Version 1.0.0
|
||||
|
||||
- Initial version
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue