From 83297ffa0078cd3aa1f7778f887321fa29c62e3e Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 24 Jun 2021 11:50:03 +0800 Subject: [PATCH] Bump version to 1.0. --- CHANGELOG.md | 8 ++++++++ Cargo.toml | 2 +- src/engine_api.rs | 3 ++- src/module/mod.rs | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58434e5d..0be17a00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ Rhai Release Notes ================== +Version 1.0.0 +============= + +The official version `1.0`. + +Almost the same version as `0.20.3` but with deprecated API removed. + + Version 0.20.3 ============== diff --git a/Cargo.toml b/Cargo.toml index eb75503c..834c4e29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = [".", "codegen"] [package] name = "rhai" -version = "0.20.3" +version = "1.0.0" edition = "2018" authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"] description = "Embedded scripting for Rust" diff --git a/src/engine_api.rs b/src/engine_api.rs index 3b8149ca..0f8f70fe 100644 --- a/src/engine_api.rs +++ b/src/engine_api.rs @@ -1314,7 +1314,8 @@ impl Engine { Self::read_file(path).and_then(|contents| Ok(self.compile_with_scope(scope, &contents)?)) } /// Parse a JSON string into an [object map][`Map`]. - /// This is a light-weight alternative to using, say, [`serde_json`] to deserialize the JSON. + /// This is a light-weight alternative to using, say, + /// [`serde_json`](https://crates.io/crates/serde_json) to deserialize the JSON. /// /// Not available under `no_object`. /// diff --git a/src/module/mod.rs b/src/module/mod.rs index 9479e6c1..ebd3f2db 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -290,7 +290,7 @@ impl Module { /// ``` #[inline(always)] #[must_use] - pub fn id_raw(&self) -> Option<&Identifier> { + pub(crate) fn id_raw(&self) -> Option<&Identifier> { self.id.as_ref() }