From a93f922a25cbcc8748eb498a1bee059ad014d390 Mon Sep 17 00:00:00 2001 From: Jianfeng Jiang Date: Thu, 23 May 2024 08:26:10 +0000 Subject: [PATCH] Add description and license for align-ext --- framework/libs/align_ext/Cargo.toml | 2 ++ framework/libs/align_ext/src/lib.rs | 2 +- rust-toolchain.toml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/libs/align_ext/Cargo.toml b/framework/libs/align_ext/Cargo.toml index 06a1c5a2e..048a5fcc9 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 f9692e86c..27ce13291 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 b303b30bc..ff9860ba9 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