diff --git a/CHANGELOG.md b/CHANGELOG.md index d211e6cfd..c3b0c51e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ number of new `Guid` methods. - The `MEMORY_DESCRIPTOR_VERSION` constant has been moved to `MemoryDescriptor::VERSION`. +- The `Revision` struct's one field is now public. ## uefi-macros - [Unreleased] diff --git a/uefi-raw/src/lib.rs b/uefi-raw/src/lib.rs index fd5fdbbe4..03b3cf891 100644 --- a/uefi-raw/src/lib.rs +++ b/uefi-raw/src/lib.rs @@ -18,6 +18,7 @@ mod enums; pub mod protocol; +pub mod table; mod status; diff --git a/uefi-raw/src/table/mod.rs b/uefi-raw/src/table/mod.rs new file mode 100644 index 000000000..1c58ea4ed --- /dev/null +++ b/uefi-raw/src/table/mod.rs @@ -0,0 +1,5 @@ +//! Standard UEFI tables. + +mod revision; + +pub use revision::Revision; diff --git a/uefi/src/table/revision.rs b/uefi-raw/src/table/revision.rs similarity index 99% rename from uefi/src/table/revision.rs rename to uefi-raw/src/table/revision.rs index ebec0bfd3..f2b5faa7b 100644 --- a/uefi/src/table/revision.rs +++ b/uefi-raw/src/table/revision.rs @@ -32,7 +32,7 @@ use core::fmt; /// ``` #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)] #[repr(transparent)] -pub struct Revision(u32); +pub struct Revision(pub u32); // Allow missing docs, there's nothing useful to document about these // constants. diff --git a/uefi/src/table/mod.rs b/uefi/src/table/mod.rs index 81b5c0007..8c57aba3b 100644 --- a/uefi/src/table/mod.rs +++ b/uefi/src/table/mod.rs @@ -10,9 +10,6 @@ pub trait Table { mod header; pub use self::header::Header; -mod revision; -pub use self::revision::Revision; - mod system; pub use self::system::{Boot, Runtime, SystemTable}; @@ -20,3 +17,5 @@ pub mod boot; pub mod runtime; pub mod cfg; + +pub use uefi_raw::table::Revision;