diff --git a/framework/libs/align_ext/Cargo.toml b/framework/libs/align_ext/Cargo.toml index 06a1c5a2..048a5fcc 100644 --- a/framework/libs/align_ext/Cargo.toml +++ b/framework/libs/align_ext/Cargo.toml @@ -2,5 +2,7 @@ name = "align_ext" version = "0.1.0" edition = "2021" +description = " An extension trait for Rust integer types to make integers aligned to a power of two" +license = "MPL-2.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/framework/libs/align_ext/src/lib.rs b/framework/libs/align_ext/src/lib.rs index f9692e86..27ce1329 100644 --- a/framework/libs/align_ext/src/lib.rs +++ b/framework/libs/align_ext/src/lib.rs @@ -6,7 +6,7 @@ /// `u64`, and `usize`, to provide methods to make integers aligned to a /// power of two. pub trait AlignExt { - /// returns whether the number is a power of two + /// Returns whether the number is a power of two fn is_power_of_two(&self) -> bool; /// Returns to the smallest number that is greater than or equal to diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b303b30b..ff9860ba 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -3,3 +3,4 @@ [toolchain] channel = "nightly-2024-01-01" components = ["rust-src", "rustc-dev", "llvm-tools-preview"] +targets = ["x86_64-unknown-none"] \ No newline at end of file