Skip to content

Commit fc83d6b

Browse files
authored
Merge pull request #949 from schungx/master
Fix builds
2 parents eb81baf + 72a8fe0 commit fc83d6b

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
Rhai Release Notes
22
==================
33

4+
Version 1.21.0
5+
==============
6+
7+
Bug fixes
8+
---------
9+
10+
* Fixed bug in raw strings (thanks [`@benatkin`](https://github.com/benatkin) [944](https://github.com/rhaiscript/rhai/pull/944)).
11+
* `get_fn_metadata_list` function is marked `volatile`.
12+
* `no-std` plus `sync` should now build correctly (thanks [`stargazing-dino`](https://github.com/stargazing-dino) [947](https://github.com/rhaiscript/rhai/pull/947)).
13+
14+
Enhancements
15+
------------
16+
17+
* 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)).
18+
19+
420
Version 1.20.1
521
==============
622

723
Bug fixes
824
---------
925

1026
* Fixed bug in raw strings with newlines (thanks [`@benatkin`](https://github.com/benatkin) [940](https://github.com/rhaiscript/rhai/pull/940)).
11-
* `get_fn_metadata_list` function is marked `volatile`.
1227

1328
Enhancements
1429
------------
1530

1631
* If a string slice refers to the entire string, the slice is not cloned but returned as-is.
17-
* 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)).
1832

1933

2034
Version 1.20.0

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@
9393
#![allow(clippy::no_effect_underscore_binding)] // Underscored variables may be used by code within feature guards
9494
#![allow(clippy::semicolon_if_nothing_returned)] // One-liner `match` cases are sometimes formatted as multi-line blocks
9595

96-
#[cfg(feature = "no_std")]
96+
// TODO: Further audit no_std compatibility
97+
// When building with no_std + sync features, explicit imports from alloc
98+
// are needed despite using no_std_compat. This fixed compilation errors
99+
// in `native.rs` around missing trait implementations for some users.
100+
//#[cfg(feature = "no_std")]
97101
extern crate alloc;
98102

99103
#[cfg(feature = "no_std")]

0 commit comments

Comments
 (0)