Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Largely built from this excellent guide:
# https://shift.click/blog/github-actions-rust/#run-on-pushes-to-main--prs-to-main-or-dev

name: Test

env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
name: ${{ matrix.rust }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { rust: stable, os: ubuntu-latest }
- { rust: nightly, os: ubuntu-latest }
steps:
- uses: actions/checkout@v2

- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v1

- run: cargo test
- run: cargo clippy
- run: cargo fmt -- --check
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# tcp-channel

[![Crates.io](http://meritbadge.herokuapp.com/tcp-channel)](https://crates.io/crates/tcp-channel)
[![Docs.rs](https://docs.rs/tcp-channel/badge.svg)](https://docs.rs/tcp-channel)
[![Build Status](https://travis-ci.org/4lDO2/tcp-channel.svg?branch=master)](https://travis-ci.org/4lDO2/tcp-channel)
[![crates.io](https://img.shields.io/crates/v/tcp-channel.svg)](https://crates.io/crates/tcp-channel)
[![Released API docs](https://docs.rs/tcp-channel/badge.svg)](https://docs.rs/tcp-channel)
[![Test](https://github.com/4lDO2/tcp-channel/actions/workflows/test.yml/badge.svg)](https://github.com/4lDO2/tcp-channel/actions/workflows/test.yml)

SPSC channels in Rust, transmitted through anything that implements `Read` and `Write`.
It uses `bincode` and `serde` for serialization and deserialization.