libMCTP is a MCTP (Management Component Transport Protocol) implementation for Rust.
libMCTP aims to implement the MCTP protocol as described in the DMTF DSP2016 specification.
MCTP allows multiple transport layers, the protocols supported by this library include:
- SMBus/I2C version 1.2.0. See DMTF DSP0237
libMCTP does not send or receive any data. Instead it generates
arrays that contain all of the bytes that should be sent. It also
[u8] arrays. This allows you to use your own SMBus/I2C
Developers wanting to use this as a library should focus on the relevant
transport layer context. For example, for SMBus support use the
MCTPSMBusContext struct in the
This defines the MCTP base protocol common fields.
This describes the MCTP Control Message headers and protocols.
The public error types used by libMCTP
The SMBus specific protocol implementation.
The implementation for the SMBus protocol
The SMBus specific CMTP request protocol implementation.
The SMBus specific CMTP response protocol implementation.
The global context for MCTP SMBus operations
The possible Control Message errors
The possible errors when decoding a packet
The Message Type of the MCTP packet