From 7fc38d4cd2bb309bf4dc2d909a54149c50e90d60 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 30 Jan 2021 07:19:54 +0800 Subject: [PATCH] Change rhaiscript.github.io to rhai.rs --- Cargo.toml | 2 +- README.md | 42 +++++++++++++++++++++--------------------- RELEASES.md | 4 ++-- codegen/Cargo.toml | 2 +- src/lib.rs | 4 ++-- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4404a367..1d68fb03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ version = "0.19.11" edition = "2018" authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"] description = "Embedded scripting for Rust" -homepage = "https://rhaiscript.github.io/book" +homepage = "https://rhai.rs/book" repository = "https://github.com/rhaiscript" readme = "README.md" license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index cfd6da40..e256214f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Rhai - Embedded Scripting for Rust [![chat](https://img.shields.io/discord/767611025456889857.svg?logo=discord)](https://discord.gg/HquqbYFcZ9) [![Reddit](https://img.shields.io/reddit/subreddit-subscribers/Rhai?logo=reddit)](https://www.reddit.com/r/Rhai) -![Rhai logo](https://rhaiscript.github.io/book/images/logo/rhai-banner-transparent-colour.svg) +![Rhai logo](https://rhai.rs/book/images/logo/rhai-banner-transparent-colour.svg) Rhai is an embedded scripting language and evaluation engine for Rust that gives a safe and easy way to add scripting to any application. @@ -30,51 +30,51 @@ Standard features * Simple language similar to JavaScript+Rust with dynamic typing. * Fairly efficient evaluation (1 million iterations in 0.3 sec on a single-core, 2.3 GHz Linux VM). -* Tight integration with native Rust [functions](https://rhaiscript.github.io/book/rust/functions.html) and [types]([#custom-types-and-methods](https://rhaiscript.github.io/book/rust/custom.html)), including [getters/setters](https://rhaiscript.github.io/book/rust/getters-setters.html), [methods](https://rhaiscript.github.io/book/rust/custom.html) and [indexers](https://rhaiscript.github.io/book/rust/indexers.html). -* Freely pass Rust variables/constants into a script via an external [`Scope`](https://rhaiscript.github.io/book/rust/scope.html) - all clonable Rust types are supported; no need to implement any special trait. -* Easily [call a script-defined function](https://rhaiscript.github.io/book/engine/call-fn.html) from Rust. +* Tight integration with native Rust [functions](https://rhai.rs/book/rust/functions.html) and [types]([#custom-types-and-methods](https://rhai.rs/book/rust/custom.html)), including [getters/setters](https://rhai.rs/book/rust/getters-setters.html), [methods](https://rhai.rs/book/rust/custom.html) and [indexers](https://rhai.rs/book/rust/indexers.html). +* Freely pass Rust variables/constants into a script via an external [`Scope`](https://rhai.rs/book/rust/scope.html) - all clonable Rust types are supported; no need to implement any special trait. +* Easily [call a script-defined function](https://rhai.rs/book/engine/call-fn.html) from Rust. * Relatively little `unsafe` code (yes there are some for performance reasons). * Few dependencies (currently only [`smallvec`](https://crates.io/crates/smallvec) and [`ahash`](https://crates.io/crates/ahash)). * Re-entrant scripting engine can be made `Send + Sync` (via the `sync` feature). * Compile once to AST form for repeated evaluations. -* Scripts are [optimized](https://rhaiscript.github.io/book/engine/optimize.html) (useful for template-based machine-generated scripts). -* Easy custom API development via [plugins](https://rhaiscript.github.io/book/plugins/index.html) system powered by procedural macros. -* [Function overloading](https://rhaiscript.github.io/book/language/overload.html) and [operator overloading](https://rhaiscript.github.io/book/rust/operators.html). -* Dynamic dispatch via [function pointers](https://rhaiscript.github.io/book/language/fn-ptr.html) with additional support for [currying](https://rhaiscript.github.io/book/language/fn-curry.html). -* [Closures](https://rhaiscript.github.io/book/language/fn-closure.html) (anonymous functions) that can capture shared values. -* Some syntactic support for [object-oriented programming (OOP)](https://rhaiscript.github.io/book/language/oop.html). -* Organize code base with dynamically-loadable [modules](https://rhaiscript.github.io/book/language/modules.html), optionally overriding the resolution process +* Scripts are [optimized](https://rhai.rs/book/engine/optimize.html) (useful for template-based machine-generated scripts). +* Easy custom API development via [plugins](https://rhai.rs/book/plugins/index.html) system powered by procedural macros. +* [Function overloading](https://rhai.rs/book/language/overload.html) and [operator overloading](https://rhai.rs/book/rust/operators.html). +* Dynamic dispatch via [function pointers](https://rhai.rs/book/language/fn-ptr.html) with additional support for [currying](https://rhai.rs/book/language/fn-curry.html). +* [Closures](https://rhai.rs/book/language/fn-closure.html) (anonymous functions) that can capture shared values. +* Some syntactic support for [object-oriented programming (OOP)](https://rhai.rs/book/language/oop.html). +* Organize code base with dynamically-loadable [modules](https://rhai.rs/book/language/modules.html), optionally overriding the resolution process * Serialization/deserialization support via [serde](https://crates.io/crates/serde) (requires the `serde` feature). -* Support for [minimal builds](https://rhaiscript.github.io/book/start/builds/minimal.html) by excluding unneeded language [features](https://rhaiscript.github.io/book/start/features.html). +* Support for [minimal builds](https://rhai.rs/book/start/builds/minimal.html) by excluding unneeded language [features](https://rhai.rs/book/start/features.html). Protected against attacks ------------------------- -* Sand-boxed - the scripting engine, if declared immutable, cannot mutate the containing environment unless [explicitly permitted](https://rhaiscript.github.io/book/patterns/control.html). -* Rugged - protected against malicious attacks (such as [stack-overflow](https://rhaiscript.github.io/book/safety/max-call-stack.html), [over-sized data](https://rhaiscript.github.io/book/safety/max-string-size.html), and [runaway scripts](https://rhaiscript.github.io/book/safety/max-operations.html) etc.) that may come from untrusted third-party user-land scripts. -* Track script evaluation [progress](https://rhaiscript.github.io/book/safety/progress.html) and manually terminate a script run. +* Sand-boxed - the scripting engine, if declared immutable, cannot mutate the containing environment unless [explicitly permitted](https://rhai.rs/book/patterns/control.html). +* Rugged - protected against malicious attacks (such as [stack-overflow](https://rhai.rs/book/safety/max-call-stack.html), [over-sized data](https://rhai.rs/book/safety/max-string-size.html), and [runaway scripts](https://rhai.rs/book/safety/max-operations.html) etc.) that may come from untrusted third-party user-land scripts. +* Track script evaluation [progress](https://rhai.rs/book/safety/progress.html) and manually terminate a script run. For those who actually want their own language --------------------------------------------- -* Use as a [DSL](https://rhaiscript.github.io/book/engine/dsl.html). -* Restrict the language by surgically [disabling keywords and operators](https://rhaiscript.github.io/book/engine/disable.html). -* Define [custom operators](https://rhaiscript.github.io/book/engine/custom-op.html). -* Extend the language with [custom syntax](https://rhaiscript.github.io/book/engine/custom-syntax.html). +* Use as a [DSL](https://rhai.rs/book/engine/dsl.html). +* Restrict the language by surgically [disabling keywords and operators](https://rhai.rs/book/engine/disable.html). +* Define [custom operators](https://rhai.rs/book/engine/custom-op.html). +* Extend the language with [custom syntax](https://rhai.rs/book/engine/custom-syntax.html). Documentation ------------- -See [The Rhai Book](https://rhaiscript.github.io/book) for details on the Rhai scripting engine and language. +See [The Rhai Book](https://rhai.rs/book) for details on the Rhai scripting engine and language. Playground ---------- -An [Online Playground](https://rhaiscript.github.io/playground) is available with +An [Online Playground](https://rhai.rs/playground) is available with syntax-highlighting editor, powered by WebAssembly. Scripts can be evaluated directly from the editor. diff --git a/RELEASES.md b/RELEASES.md index 0f3e37d5..718ce380 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -531,7 +531,7 @@ Version 0.16.0 The major new feature in this version is OOP - well, poor man's OOP, that is. -The `README` is officially transferred to [The Rhai Book](https://rhaiscript.github.io/book). +The `README` is officially transferred to [The Rhai Book](https://rhai.rs/book). An online [Playground](https://alvinhochun.github.io/rhai-demo/) is available. @@ -556,7 +556,7 @@ New features Enhancements ------------ -* [The Rhai Book](https://rhaiscript.github.io/book) is online. Most content in the original `README` was transferred to the Book. +* [The Rhai Book](https://rhai.rs/book) is online. Most content in the original `README` was transferred to the Book. * New feature `internals` to expose internal data structures (e.g. the AST nodes). diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 3088cdab..af0b265d 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -4,7 +4,7 @@ version = "0.3.2" edition = "2018" authors = ["jhwgh1968"] description = "Procedural macro support package for Rhai, a scripting language for Rust" -homepage = "https://rhaiscript.github.io/book/plugins/index.html" +homepage = "https://rhai.rs/book/plugins/index.html" repository = "https://github.com/rhaiscript/rhai" license = "MIT OR Apache-2.0" diff --git a/src/lib.rs b/src/lib.rs index 34fed243..401cc576 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ //! # Rhai - embedded scripting for Rust //! -//! ![Rhai logo](https://rhaiscript.github.io/book/images/logo/rhai-banner-transparent-colour.svg) +//! ![Rhai logo](https://rhai.rs/book/images/logo/rhai-banner-transparent-colour.svg) //! //! Rhai is a tiny, simple and fast embedded scripting language for Rust //! that gives you a safe and easy way to add scripting to your applications. @@ -54,7 +54,7 @@ //! //! # Documentation //! -//! See [The Rhai Book](https://rhaiscript.github.io/book) for details on the Rhai scripting engine and language. +//! See [The Rhai Book](https://rhai.rs/book) for details on the Rhai scripting engine and language. #![cfg_attr(feature = "no_std", no_std)]