Add function name to NativeCallContext.

This commit is contained in:
Stephen Chung
2021-01-21 21:49:25 +08:00
parent f6553c1426
commit 8aae3ac46c
5 changed files with 50 additions and 29 deletions

View File

@@ -11,7 +11,8 @@ Rust compiler minimum version is raised to 1.49.
Breaking changes
----------------
Rust compiler requirement raised to 1.49.
* Rust compiler requirement raised to 1.49.
* `NativeCallContext::new` taker an additional parameter containing the name of the function called.
Bug fixes
---------
@@ -28,6 +29,7 @@ Enhancements
* `ahash` is used to hash function call parameters. This should yield speed improvements.
* `Dynamic` and `ImmutableString` now implement `serde::Serialize` and `serde::Deserialize`.
* `NativeCallContext` has a new field containing the name of the function called, useful when the same Rust function is registered under multiple names in Rhai.
Version 0.19.10