Skip to content

Reworded docs for encoder::Writer::write_chunk() #681

Reworded docs for encoder::Writer::write_chunk()

Reworded docs for encoder::Writer::write_chunk() #681

Workflow file for this run

name: Rust CI
on:
push:
branches: [ master, main, next ]
pull_request:
branches: [ master, main, next ]
jobs:
build:
strategy:
fail-fast: false
matrix:
rust: ["1.65.0", stable, beta, nightly]
os: [ubuntu-latest, windows-latest, macos-latest]
features: [""]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
if: ${{ matrix.rust == '1.65.0' }}
- name: Generate Cargo.lock with minimal-version dependencies
if: ${{ matrix.rust == '1.65.0' }}
run: cargo -Zminimal-versions generate-lockfile
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: build
run: |
cargo build --verbose
feature_check:
strategy:
matrix:
features: ["", "unstable", "benchmarks"]
os: [ubuntu-latest, macos-latest] # macos-latest is ARM
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: check
run: |
cargo check --tests --no-default-features --features="$FEATURES"
env:
FEATURES: ${{ matrix.features }}
powerpc_cross:
# github actions does not support big endian systems directly, but it does support QEMU.
# so we install qemu, then build and run the tests in an emulated powerpc system.
# note: you can also use this approach to test for big endian locally.
runs-on: ubuntu-latest
# we are using the cross project for cross compilation:
# https://github.com/cross-rs/cross
steps:
- uses: actions/checkout@v4
- name: Install or use cached cross-rs/cross
uses: baptiste0928/cargo-install@v1
with:
crate: cross
- name: Cache Cargo Dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Start Docker (required for cross-rs)
run: sudo systemctl start docker
- name: Cross-Run Tests in powerpc-unknown-linux-gnu using Qemu
run: cross test --release --target powerpc-unknown-linux-gnu --verbose -v
test_all:
strategy:
matrix:
os: [ubuntu-latest, macos-latest] # macos-latest is ARM
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: rustup default stable
- name: test
run: >
cargo test -v --all-targets
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Run rustfmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check