From c4d51e1547ba129a73de7d8f335d328f0046419d Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 31 Dec 2024 12:22:26 +0800 Subject: [PATCH 1/2] Fix versions --- CHANGELOG.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c172a4dd..861357e03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,21 @@ Rhai Release Notes ================== +Version 1.21.0 +============== + +Bug fixes +--------- + +* Fixed bug in raw strings (thanks [`@benatkin`](https://github.com/benatkin) [944](https://github.com/rhaiscript/rhai/pull/944)). +* `get_fn_metadata_list` function is marked `volatile`. + +Enhancements +------------ + +* A new `internals` function, `Engine::collect_fn_metadata`, is added to collect all functions metadata. This is to facilitate better error reporting for missing functions (thanks [`therealprof`](https://github.com/therealprof) [945](https://github.com/rhaiscript/rhai/pull/945)). + + Version 1.20.1 ============== @@ -8,13 +23,11 @@ Bug fixes --------- * Fixed bug in raw strings with newlines (thanks [`@benatkin`](https://github.com/benatkin) [940](https://github.com/rhaiscript/rhai/pull/940)). -* `get_fn_metadata_list` function is marked `volatile`. Enhancements ------------ * If a string slice refers to the entire string, the slice is not cloned but returned as-is. -* A new `internals` function, `Engine::collect_fn_metadata`, is added to collect all functions metadata. This is to facilitate better error reporting for missing functions (thanks [`therealprof`](https://github.com/therealprof) [899](https://github.com/rhaiscript/rhai/issues/899)). Version 1.20.0 From 72a8fe06625ec1411a7b9562947a0243eeebc0fa Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 5 Jan 2025 15:52:16 +0800 Subject: [PATCH 2/2] Fix builds --- CHANGELOG.md | 1 + src/lib.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 861357e03..bdeac1573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Bug fixes * Fixed bug in raw strings (thanks [`@benatkin`](https://github.com/benatkin) [944](https://github.com/rhaiscript/rhai/pull/944)). * `get_fn_metadata_list` function is marked `volatile`. +* `no-std` plus `sync` should now build correctly (thanks [`stargazing-dino`](https://github.com/stargazing-dino) [947](https://github.com/rhaiscript/rhai/pull/947)). Enhancements ------------ diff --git a/src/lib.rs b/src/lib.rs index 2ced26f78..c81dacc35 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,7 +93,11 @@ #![allow(clippy::no_effect_underscore_binding)] // Underscored variables may be used by code within feature guards #![allow(clippy::semicolon_if_nothing_returned)] // One-liner `match` cases are sometimes formatted as multi-line blocks -#[cfg(feature = "no_std")] +// TODO: Further audit no_std compatibility +// When building with no_std + sync features, explicit imports from alloc +// are needed despite using no_std_compat. This fixed compilation errors +// in `native.rs` around missing trait implementations for some users. +//#[cfg(feature = "no_std")] extern crate alloc; #[cfg(feature = "no_std")]