Crates.io | cmri |
lib.rs | cmri |
version | 0.1.1 |
source | src |
created_at | 2024-09-12 10:00:02.65624 |
updated_at | 2024-10-19 08:23:08.794065 |
description | Pure-Rust decoding/encoding of packets for CMRInet |
homepage | |
repository | https://github.com/RobertGauld/cmri-rs/tree/main/cmri |
max_upload_size | |
id | 1372635 |
size | 279,931 |
Pure-Rust decoding/encoding of packets for CMRInet (as defined in NMRA Specification LCS-9.10.1).
This is a std crate by default.
The serde feature adds serializating and deserializating of all items using serde.
The experimenter feature is intended for people who are using nonstandard packets/nodes, perhaps in their own experimentation. It enables the following changes:
packet::Error::InvalidMessageType
] for an otherwise valid message type (ASCII uppercase), you'll get a [packet::Payload::Unknown
].packet::Error::InvalidNodeType
] for an otherwise valid node definition parameter (ASCII alphabetic), you'll get a [node_configuration::NodeSort::Unknown
].packet::Packet::try_new_unknown
]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:
Additionally nostd building is tested for:
no_std
no_std
no_std
no_std
no_std