Verified Commit 5128b87e authored by Jeremy Soller's avatar Jeremy Soller
Browse files

0.1.4 - add support for using std

parent 9d6b5bb1
name = "redox_dmi"
version = "0.1.3"
version = "0.1.4"
edition = "2018"
description = "DMI table parser"
license = "MIT"
......@@ -12,3 +12,7 @@ name = "dmi"
plain = "0.2.3"
default = []
std = []
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
#[cfg(not(feature = "std"))]
extern crate alloc;
extern crate plain;
use alloc::string::String;
use alloc::vec::Vec;
#[cfg(not(feature = "std"))]
use alloc::{string::String, vec::Vec};
use plain::Plain;
......@@ -143,36 +143,6 @@ pub struct ChassisInfo {
unsafe impl Plain for ChassisInfo {}
#[derive(Default, Debug)]
pub struct ProcessorInfo {
pub socket_designation: u8,
pub processor_kind: u8,
pub processor_family: u8,
pub processor_manufacturer: u8,
pub processor_id: u64,
pub processor_version: u8,
pub voltage: u8,
pub external_clock: u16,
pub max_speed: u16,
pub current_speed: u16,
pub status: u8,
pub processor_upgrade: u8,
pub l1_cache_handle: u16,
pub l2_cache_handle: u16,
pub l3_cache_handle: u16,
pub serial_number: u8,
pub asset_tag: u8,
pub part_number: u8,
pub core_count: u8,
pub core_enabled: u8,
pub thread_count: u8,
pub processor_characteristics: u16,
pub processor_family_2: u16,
unsafe impl Plain for ProcessorInfo {}
#[derive(Default, Debug)]
pub struct MemoryDevice {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment