-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mxinden/master' into parts
- Loading branch information
Showing
21 changed files
with
340 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
on: [push, pull_request] | ||
|
||
name: Continuous integration | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
# Caching | ||
- name: Cache cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: cargo-registry-${{ hashFiles('Cargo.toml') }} | ||
- name: Cache cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: cargo-index-${{ hashFiles('Cargo.toml') }} | ||
|
||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
args: --all --all-features | ||
|
||
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
# Caching | ||
- name: Cache cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: cargo-registry-${{ hashFiles('Cargo.toml') }} | ||
- name: Cache cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: cargo-index-${{ hashFiles('Cargo.toml') }} | ||
|
||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --all --all-features | ||
|
||
fmt: | ||
name: Rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- run: rustup component add rustfmt | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- run: rustup component add clippy | ||
|
||
# Caching | ||
- name: Cache cargo registry | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/registry | ||
key: cargo-registry-${{ hashFiles('Cargo.toml') }} | ||
- name: Cache cargo index | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cargo/git | ||
key: cargo-index-${{ hashFiles('Cargo.toml') }} | ||
|
||
- uses: actions-rs/cargo@v1 | ||
continue-on-error: true | ||
with: | ||
command: clippy | ||
args: -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[package] | ||
name = "futures_codec" | ||
name = "asynchronous-codec" | ||
edition = "2018" | ||
version = "0.4.1" | ||
authors = ["Matt Hunzinger <[email protected]>"] | ||
version = "0.5.0" | ||
authors = ["Max Inden <[email protected]>"] | ||
description = "Utilities for encoding and decoding frames using `async/await`" | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/matthunz/futures-codec" | ||
homepage = "https://github.com/matthunz/futures-codec" | ||
documentation = "https://docs.rs/crate/futures_codec" | ||
repository = "https://github.com/mxinden/asynchronous-codec" | ||
homepage = "https://github.com/mxinden/asynchronous-codec" | ||
documentation = "https://docs.rs/crate/asynchronous-codec" | ||
keywords = ["future", "futures", "async", "codec"] | ||
categories = ["asynchronous", "network-programming"] | ||
|
||
|
@@ -18,22 +18,26 @@ json = [ "serde", "serde_json" ] | |
cbor = [ "serde", "serde_cbor" ] | ||
|
||
[dependencies] | ||
bytes = "0.5.4" | ||
futures = "0.3.5" | ||
memchr = "2.2.3" | ||
pin-project = "0.4.22" | ||
bytes = "1" | ||
futures-sink = "0.3" | ||
futures-util = { version = "0.3", features = ["io"] } | ||
memchr = "2" | ||
pin-project-lite = "0.2" | ||
|
||
[dev-dependencies] | ||
futures = "0.3" | ||
|
||
[dependencies.serde] | ||
version = '1.0.113' | ||
version = "1" | ||
optional = true | ||
features = [ "derive" ] | ||
|
||
[dependencies.serde_json] | ||
version = '1.0.55' | ||
version = "1" | ||
optional = true | ||
|
||
[dependencies.serde_cbor] | ||
version = '0.11.1' | ||
version = "0.11" | ||
optional = true | ||
|
||
[package.metadata.docs.rs] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.