Bump version to 1.0.

This commit is contained in:
Stephen Chung 2021-06-24 11:50:03 +08:00
parent 178fe6b978
commit 83297ffa00
4 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,14 @@
Rhai Release Notes 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 Version 0.20.3
============== ==============

View File

@ -3,7 +3,7 @@ members = [".", "codegen"]
[package] [package]
name = "rhai" name = "rhai"
version = "0.20.3" version = "1.0.0"
edition = "2018" edition = "2018"
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"] authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"]
description = "Embedded scripting for Rust" description = "Embedded scripting for Rust"

View File

@ -1314,7 +1314,8 @@ impl Engine {
Self::read_file(path).and_then(|contents| Ok(self.compile_with_scope(scope, &contents)?)) Self::read_file(path).and_then(|contents| Ok(self.compile_with_scope(scope, &contents)?))
} }
/// Parse a JSON string into an [object map][`Map`]. /// 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`. /// Not available under `no_object`.
/// ///

View File

@ -290,7 +290,7 @@ impl Module {
/// ``` /// ```
#[inline(always)] #[inline(always)]
#[must_use] #[must_use]
pub fn id_raw(&self) -> Option<&Identifier> { pub(crate) fn id_raw(&self) -> Option<&Identifier> {
self.id.as_ref() self.id.as_ref()
} }