Skip to content

Add convenience methods to decode and encode #26

Add convenience methods to decode and encode

Add convenience methods to decode and encode #26

Workflow file for this run

name: test suite
on: [push, pull_request]
jobs:
sync-readme:
name: check that README.md files are synced
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: diff README.md micropb/README.md
check-and-test:
name: check and test workspace with ${{matrix.toolchain}}
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- 1.74.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
components: clippy
- uses: arduino/setup-protoc@v3
- run: cargo clippy --workspace --tests --no-default-features --exclude arm-app -- -Dwarnings
- run: cargo clippy --workspace --tests --all-features --exclude arm-app -- -Dwarnings
- run: cargo test --workspace --exclude arm-app
build:
name: build workspace with ${{matrix.toolchain}}
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- 1.74.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
- uses: arduino/setup-protoc@v3
- run: cargo build --workspace --exclude no-panicking --exclude arm-app
- run: cargo build -p no-panicking --profile release-lto
build-arm-app:
name: build arm-app with ${{matrix.toolchain}}
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- 1.74.0
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
target: thumbv7em-none-eabihf
- uses: arduino/setup-protoc@v3
- run: cd examples/arm-app && cargo build --profile release-lto --target thumbv7em-none-eabihf
miri:
name: miri testing on unsafe code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri
- uses: arduino/setup-protoc@v3
- run: MIRIFLAGS=-"Zmiri-tree-borrows" cargo +nightly miri test -p micropb -p basic-proto
documentation:
name: document released packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: RUSTDOCFLAGS="-D warnings" cargo doc -p micropb -p micropb-gen