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

feat: Add the event-listener-strategy crate #49

Merged
merged 4 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- 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 --features __test
- run: cargo build --no-default-features
- run: cargo test --features __test --all
- run: cargo build --no-default-features --all
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: rustup target add thumbv7m-none-eabi
Expand All @@ -55,15 +55,15 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- run: cargo build
- run: cargo build --all

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update stable
- run: cargo clippy --all-features --all-targets
- run: cargo clippy --all --all-features --all-targets

fmt:
runs-on: ubuntu-latest
Expand All @@ -79,7 +79,7 @@ jobs:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup toolchain install nightly --component miri && rustup default nightly
- run: cargo miri test --features __test
- run: cargo miri test --features __test --all
env:
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ harness = false

[lib]
bench = false

[workspace]
members = ["strategy"]
16 changes: 16 additions & 0 deletions strategy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "event-listener-strategy"
version = "0.1.0"
edition = "2018"
notgull marked this conversation as resolved.
Show resolved Hide resolved

[dependencies]
event-listener = { path = "../", default-features = false }
notgull marked this conversation as resolved.
Show resolved Hide resolved
pin-project-lite = "0.2.9"
pin-utils = "0.1.0"

[features]
default = ["std"]
std = ["event-listener/std"]

[dev-dependencies]
futures-lite = "1.12.0"
Loading