From fe688ef1dbb350c67d4be00bb808f726439289dd Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 28 Jul 2021 09:03:12 +0800 Subject: [PATCH] Support no_std --- src/lib.rs | 2 ++ types/src/lib.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 14ebcc6..ad0679f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,6 +72,8 @@ //! const C2: Decimal = dec!(-0.123_456); //! ``` +#![no_std] + pub use fixed_macro_impl::fixed; /// Macros allowing to create constants for each available fixed-point type. diff --git a/types/src/lib.rs b/types/src/lib.rs index 7bbfa67..6255229 100644 --- a/types/src/lib.rs +++ b/types/src/lib.rs @@ -1,5 +1,7 @@ //! Macros allowing to create constants for each available fixed-point type. +#![no_std] + // 8-bit signed #[macro_export] /// Macro to create [I8F0](https://docs.rs/fixed/latest/fixed/types/type.I0F8.html) constants.