#codec #no-alloc #cmr-inet #model-railway

no-std cmri

Pure-Rust decoding/encoding of packets for CMRInet

2 releases

0.1.1 Oct 19, 2024
0.1.0 Sep 12, 2024

#828 in Network programming

Download history 148/week @ 2024-09-09 13/week @ 2024-09-16 8/week @ 2024-09-23 1/week @ 2024-09-30 166/week @ 2024-10-14 23/week @ 2024-10-21

191 downloads per month
Used in cmri_tools

Custom license

280KB
6K SLoC

CMRI

Docs Crates Checks

Pure-Rust decoding/encoding of packets for CMRInet (as defined in NMRA Specification LCS-9.10.1).

Features

std

This is a std crate by default.

serde

The serde feature adds serializating and deserializating of all items using serde.

experimenter

The experimenter feature is intended for people who are using nonstandard packets/nodes, perhaps in their own experimentation. It enables the following changes:

Testing

The test suite is run for all Tier 1 targets from https://doc.rust-lang.org/nightly/rustc/platform-support.html on nightly (at time of pushing to GitHub) rust.

The ability to build is tested on nightly (at time of pushing to GitHub) rust, for tier 2 targets with host tools, plus:

  • wasm32-unknown-emscripten
  • wasm32-unknown-unknown
  • wasm32-wasip1
  • aarch64-apple-ios-macabi
  • x86_64-apple-ios-macabi

Additionally nostd building is tested for:

  • mips-unknown-linux-gnu only as no_std
  • mips64-unknown-linux-gnuabi64 only as no_std
  • mips64el-unknown-linux-gnuabi64 only as no_std
  • mipsel-unknown-none only as no_std
  • avr-unknown-gnu-atmega328 - AVR only as no_std

Dependencies

~2MB
~42K SLoC