Skip to main content

smbios/
lib.rs

1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//! Safe Rust interface for parsing SMBIOS tables and structures, matching `smbios.h` / `smbios.cc`.
6
7#![no_std]
8
9mod entry_point;
10mod string_table;
11mod structures;
12#[cfg(test)]
13mod tests;
14
15pub use entry_point::{
16    EntryPoint, EntryPoint2_1, EntryPoint3_0, EntryPointType, EntryPointVersion, SMBIOS2_ANCHOR,
17    SMBIOS2_INTERMEDIATE_ANCHOR, SMBIOS3_ANCHOR, SpecVersion, compute_checksum,
18};
19pub use string_table::StringTable;
20pub use structures::{
21    BaseboardInformationStruct, BiosInformationStruct2_0, BiosInformationStruct2_4, Header,
22    StructType, SystemInformationStruct2_0, SystemInformationStruct2_1, SystemInformationStruct2_4,
23};