diff --git a/Cargo.toml b/Cargo.toml index 6ee58d61..8d3234c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ version = "0.19.10" edition = "2018" authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"] description = "Embedded scripting for Rust" -homepage = "https://schungx.github.io/rhai" -repository = "https://github.com/jonathandturner/rhai" +homepage = "https://rhaiscript.github.io/book" +repository = "https://github.com/rhaiscript/rhai" readme = "README.md" license = "MIT OR Apache-2.0" include = [ diff --git a/README.md b/README.md index b812b5c4..7a24a1ba 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ Rhai - Embedded Scripting for Rust ================================= -![GitHub last commit](https://img.shields.io/github/last-commit/jonathandturner/rhai?logo=github) -[![Build Status](https://github.com/jonathandturner/rhai/workflows/Build/badge.svg)](https://github.com/jonathandturner/rhai/actions) -[![license](https://img.shields.io/crates/l/rhai)](https://github.com/license/jonathandturner/rhai) +![GitHub last commit](https://img.shields.io/github/last-commit/rhaiscript/rhai?logo=github) +[![Build Status](https://github.com/rhaiscript/rhai/workflows/Build/badge.svg)](https://github.com/rhaiscript/rhai/actions) +[![license](https://img.shields.io/crates/l/rhai)](https://github.com/license/rhaiscript/rhai) [![crates.io](https://img.shields.io/crates/v/rhai?logo=rust)](https://crates.io/crates/rhai/) [![crates.io](https://img.shields.io/crates/d/rhai?logo=rust)](https://crates.io/crates/rhai/) [![API Docs](https://docs.rs/rhai/badge.svg?logo=docs.rs)](https://docs.rs/rhai/) [![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://schungx.github.io/rhai/images/logo/rhai-banner-transparent-colour.svg) +![Rhai logo](https://rhaiscript.github.io/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. @@ -31,44 +31,44 @@ Standard features * Easy-to-use language similar to JavaScript+Rust with dynamic typing. * Fairly low compile-time overhead. * 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://schungx.github.io/rhai/rust/functions.html) and [types]([#custom-types-and-methods](https://schungx.github.io/rhai/rust/custom.html)), including [getters/setters](https://schungx.github.io/rhai/rust/getters-setters.html), [methods](https://schungx.github.io/rhai/rust/custom.html) and [indexers](https://schungx.github.io/rhai/rust/indexers.html). -* Freely pass Rust variables/constants into a script via an external [`Scope`](https://schungx.github.io/rhai/rust/scope.html) - all clonable Rust types are supported; no need to implement any special trait. -* Easily [call a script-defined function](https://schungx.github.io/rhai/engine/call-fn.html) from Rust. +* 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. * Relatively little `unsafe` code (yes there are some for performance reasons). * Few dependencies (currently only [`smallvec`](https://crates.io/crates/smallvec)). * Re-entrant scripting engine can be made `Send + Sync` (via the `sync` feature). -* Scripts are [optimized](https://schungx.github.io/rhai/engine/optimize.html) (useful for template-based machine-generated scripts) for repeated evaluations. -* Easy custom API development via [plugins](https://schungx.github.io/rhai/plugins/index.html) system powered by procedural macros. -* [Function overloading](https://schungx.github.io/rhai/language/overload.html) and [operator overloading](https://schungx.github.io/rhai/rust/operators.html). -* Dynamic dispatch via [function pointers](https://schungx.github.io/rhai/language/fn-ptr.html) with additional support for [currying](https://schungx.github.io/rhai/language/fn-curry.html). -* [Closures](https://schungx.github.io/rhai/language/fn-closure.html) (anonymous functions) that can capture shared values. -* Some syntactic support for [object-oriented programming (OOP)](https://schungx.github.io/rhai/language/oop.html). -* Organize code base with dynamically-loadable [modules](https://schungx.github.io/rhai/language/modules.html). +* Scripts are [optimized](https://rhaiscript.github.io/book/engine/optimize.html) (useful for template-based machine-generated scripts) for repeated evaluations. +* 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). * Serialization/deserialization support via [serde](https://crates.io/crates/serde) (requires the `serde` feature). -* Support for [minimal builds](https://schungx.github.io/rhai/start/builds/minimal.html) by excluding unneeded language [features](https://schungx.github.io/rhai/start/features.html). +* 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). Protected against attacks ------------------------- -* Sand-boxed - the scripting engine, if declared immutable, cannot mutate the containing environment unless [explicitly permitted](https://schungx.github.io/rhai/patterns/control.html). -* Rugged - protected against malicious attacks (such as [stack-overflow](https://schungx.github.io/rhai/safety/max-call-stack.html), [over-sized data](https://schungx.github.io/rhai/safety/max-string-size.html), and [runaway scripts](https://schungx.github.io/rhai/safety/max-operations.html) etc.) that may come from untrusted third-party user-land scripts. -* Track script evaluation [progress](https://schungx.github.io/rhai/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://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. For those who actually want their own language --------------------------------------------- -* Use as a [DSL](https://schungx.github.io/rhai/engine/dsl.html). -* Restrict the language by surgically [disabling keywords and operators](https://schungx.github.io/rhai/engine/disable.html). -* Define [custom operators](https://schungx.github.io/rhai/engine/custom-op.html). -* Extend the language with [custom syntax](https://schungx.github.io/rhai/engine/custom-syntax.html). +* 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). Documentation ------------- -See [The Rhai Book](https://schungx.github.io/rhai) for details on the Rhai scripting engine and language. +See [The Rhai Book](https://rhaiscript.github.io/book) for details on the Rhai scripting engine and language. To build _The Book_, first install [`mdbook`](https://github.com/rust-lang/mdBook) and [`mdbook-tera`](https://github.com/avitex/mdbook-tera) (for templating). @@ -87,8 +87,8 @@ License Licensed under either of the following, at your choice: -* [Apache License, Version 2.0](https://github.com/jonathandturner/rhai/blob/master/LICENSE-APACHE.txt), or -* [MIT license](https://github.com/jonathandturner/rhai/blob/master/LICENSE-MIT.txt) +* [Apache License, Version 2.0](https://github.com/rhaiscript/rhai/blob/master/LICENSE-APACHE.txt), or +* [MIT license](https://github.com/rhaiscript/rhai/blob/master/LICENSE-MIT.txt) Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion in this crate, as defined in the Apache-2.0 license, shall diff --git a/RELEASES.md b/RELEASES.md index e43a841c..517c82d0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -480,7 +480,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://schungx.github.io/rhai). +The `README` is officially transferred to [The Rhai Book](https://rhaiscript.github.io/book). An online [Playground](https://alvinhochun.github.io/rhai-demo/) is available. @@ -505,7 +505,7 @@ New features Enhancements ------------ -* [The Rhai Book](https://schungx.github.io/rhai) is online. Most content in the original `README` was transferred to the Book. +* [The Rhai Book](https://rhaiscript.github.io/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 97d80523..073843b1 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -4,8 +4,8 @@ version = "0.3.1" edition = "2018" authors = ["jhwgh1968"] description = "Procedural macro support package for Rhai, a scripting language for Rust" -homepage = "https://schungx.github.io/rhai/plugins/index.html" -repository = "https://github.com/jonathandturner/rhai" +homepage = "https://rhaiscript.github.io/book/plugins/index.html" +repository = "https://github.com/rhaiscript/rhai" license = "MIT OR Apache-2.0" [lib] diff --git a/codegen/README.md b/codegen/README.md index 275c26eb..5099d3a4 100644 --- a/codegen/README.md +++ b/codegen/README.md @@ -2,4 +2,4 @@ Procedural Macros for Plugins ============================= This crate holds procedural macros for code generation, supporting the plugins system -for [Rhai](https://github.com/jonathandturner/rhai). +for [Rhai](https://github.com/rhaiscript/rhai). diff --git a/doc/README.md b/doc/README.md index 63d79bc4..bc521a4f 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,7 +1,7 @@ The Rhai Book ============= -[_The Rhai Book_](https://schungx.github.io/rhai) serves as Rhai's primary +[_The Rhai Book_](https://rhaiscript.github.io/book) serves as Rhai's primary documentation and tutorial resource. @@ -33,9 +33,9 @@ Configuration Settings Settings stored in `context.json`: -| Setting | Description | -| ---------- | ------------------------------------------------------------------------------------------------- | -| `version` | version of Rhai | -| `repoHome` | points to the [root of the GitHub repo](https://github.com/jonathandturner/rhai/blob/master) | -| `repoTree` | points to the [root of the GitHub repo tree](https://github.com/jonathandturner/rhai/tree/master) | -| `rootUrl` | sub-directory for the root domain, e.g. `/rhai` | +| Setting | Description | +| ---------- | -------------------------------------------------------------------------------------------- | +| `version` | version of Rhai | +| `repoHome` | points to the [root of the GitHub repo](https://github.com/rhaiscript/rhai/blob/master) | +| `repoTree` | points to the [root of the GitHub repo tree](https://github.com/rhaiscript/rhai/tree/master) | +| `rootUrl` | sub-directory for the root domain, e.g. `/rhai` | diff --git a/doc/book.toml b/doc/book.toml index a48eadaf..d72fe611 100644 --- a/doc/book.toml +++ b/doc/book.toml @@ -6,7 +6,7 @@ language = "en" [output.html] no-section-label = true -git-repository-url = "https://github.com/jonathandturner/rhai" +git-repository-url = "https://github.com/rhaiscript/rhai" curly-quotes = true [output.html.fold] diff --git a/doc/src/about/related.md b/doc/src/about/related.md index 84af9824..cc6e2503 100644 --- a/doc/src/about/related.md +++ b/doc/src/about/related.md @@ -7,7 +7,7 @@ Related Resources Online Resources for Rhai ------------------------- -* [GitHub](https://github.com/jonathandturner/rhai) – Home repository +* [GitHub](https://github.com/rhaiscript/rhai) – Home repository * [`crates.io`](https://crates.io/crates/rhai) – Rhai crate diff --git a/doc/src/context.json b/doc/src/context.json index d19c1ac0..e3ba5b9b 100644 --- a/doc/src/context.json +++ b/doc/src/context.json @@ -1,7 +1,7 @@ { "version": "0.19.10", - "repoHome": "https://github.com/jonathandturner/rhai/blob/master", - "repoTree": "https://github.com/jonathandturner/rhai/tree/master", + "repoHome": "https://github.com/rhaiscript/rhai/blob/master", + "repoTree": "https://github.com/rhaiscript/rhai/tree/master", "rootUrl": "", "rootUrlX": "/rhai", "rootUrlXX": "/rhai/vnext" diff --git a/doc/src/patterns/multiple.md b/doc/src/patterns/multiple.md index e7806265..dad53501 100644 --- a/doc/src/patterns/multiple.md +++ b/doc/src/patterns/multiple.md @@ -47,18 +47,18 @@ a different [features] set, by their _sources_: * Different versions from [`crates.io`](https://crates.io/crates/rhai/) – The official crate. -* Different releases from [`GitHub`](https://github.com/jonathandturner/rhai) – Crate source on GitHub. +* Different releases from [`GitHub`](https://github.com/rhaiscript/rhai) – Crate source on GitHub. -* Forked copy of [https://github.com/jonathandturner/rhai](https://github.com/jonathandturner/rhai) on GitHub. +* Forked copy of [https://github.com/rhaiscript/rhai](https://github.com/rhaiscript/rhai) on GitHub. -* Local copy of [https://github.com/jonathandturner/rhai](https://github.com/jonathandturner/rhai) downloaded form GitHub. +* Local copy of [https://github.com/rhaiscript/rhai](https://github.com/rhaiscript/rhai) downloaded form GitHub. Use the following configuration in `Cargo.toml` to pull in multiple copies of Rhai within the same project: ```toml [dependencies] rhai = { version = "{{version}}", features = [ "no_float" ] } -rhai_github = { git = "https://github.com/jonathandturner/rhai", features = [ "unchecked" ] } +rhai_github = { git = "https://github.com/rhaiscript/rhai", features = [ "unchecked" ] } rhai_my_github = { git = "https://github.com/my_github/rhai", branch = "variation1", features = [ "serde", "no_closure" ] } rhai_local = { path = "../rhai_copy" } ``` diff --git a/doc/src/start/install.md b/doc/src/start/install.md index 007f6d63..18b75223 100644 --- a/doc/src/start/install.md +++ b/doc/src/start/install.md @@ -22,9 +22,9 @@ rhai = "*" Crate versions are released on [`crates.io`](https:/crates.io/crates/rhai/) infrequently, so to track the latest features, enhancements and bug fixes, pull directly from -[GitHub](https://github.com/jonathandturner/rhai): +[GitHub](https://github.com/rhaiscript/rhai): ```toml [dependencies] -rhai = { git = "https://github.com/jonathandturner/rhai" } +rhai = { git = "https://github.com/rhaiscript/rhai" } ``` diff --git a/no_std/no_std_test/Cargo.toml b/no_std/no_std_test/Cargo.toml index 1db56f57..6a85b79d 100644 --- a/no_std/no_std_test/Cargo.toml +++ b/no_std/no_std_test/Cargo.toml @@ -8,8 +8,8 @@ version = "0.1.0" edition = "2018" authors = ["Stephen Chung"] description = "no-std test application" -homepage = "https://github.com/jonathandturner/rhai/tree/no_std/no_std_test" -repository = "https://github.com/jonathandturner/rhai" +homepage = "https://github.com/rhaiscript/rhai/tree/no_std/no_std_test" +repository = "https://github.com/rhaiscript/rhai" [dependencies] rhai = { path = "../../", features = [ "no_std" ], default_features = false } diff --git a/src/lib.rs b/src/lib.rs index 14bc390d..fb28dcf1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ //! # Rhai - embedded scripting for Rust //! -//! ![Rhai logo](https://schungx.github.io/rhai/images/logo/rhai-banner-transparent-colour.svg) +//! ![Rhai logo](https://rhaiscript.github.io/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://schungx.github.io/rhai) for details on the Rhai scripting engine and language. +//! See [The Rhai Book](https://rhaiscript.github.io/book) for details on the Rhai scripting engine and language. #![cfg_attr(feature = "no_std", no_std)] diff --git a/tests/expressions.rs b/tests/expressions.rs index 771d1d02..e6c09b5c 100644 --- a/tests/expressions.rs +++ b/tests/expressions.rs @@ -26,7 +26,7 @@ fn test_expressions() -> Result<(), Box> { Ok(()) } -/// This example taken from https://github.com/jonathandturner/rhai/issues/115 +/// This example taken from https://github.com/rhaiscript/rhai/issues/115 #[test] #[cfg(not(feature = "no_object"))] fn test_expressions_eval() -> Result<(), Box> {