From baf266121baefec86c7cc83b39a267285e9a1c7d Mon Sep 17 00:00:00 2001 From: Huang-Huang Bao Date: Tue, 19 Sep 2023 13:31:07 +0800 Subject: [PATCH] Add no_std support The library didn't use any std so just add #![no_std] attribute to allow no_std. --- Cargo.toml | 1 + src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 0825621..66ca956 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ repository = "https://github.com/unicode-rs/unicode-properties" documentation = "https://docs.rs/unicode-properties" license = "MIT/Apache-2.0" keywords = ["text", "unicode"] +categories = ["no-std::no-alloc"] readme = "README.md" description = """ Query character Unicode properties according to diff --git a/src/lib.rs b/src/lib.rs index bfa58d6..87849d1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,6 +42,7 @@ //! //! Provides the emoji character properties of a character. //! +#![no_std] #![deny(missing_docs)] #[rustfmt::skip]