1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! 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](https://www.dmtf.org/sites/default/files/standards/documents/DSP2016.pdf).
//!
//!
//! MCTP allows multiple transport layers, the protocols supported by this library
//! include:
//! * SMBus/I2C version 1.2.0. See [DMTF DSP0237](https://www.dmtf.org/sites/default/files/standards/documents/DSP0237_1.2.0.pdf)
//!
//! libMCTP does not send or receive any data. Instead it generates `[u8]`
//! arrays that contain all of the bytes that should be sent. It also
//! decodes `[u8]` arrays. This allows you to use your own SMBus/I2C
//! implementation.
//!
//! 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 `smbus` module.
extern crate bitfield;
// Use this to generate nicer docs
pub use crateMessageType;
pub use crateControlMessageError;
pub use crateDecodeError;
pub use crateMCTPSMBusContext;
// This is used to run the tests on a host
extern crate std;