Compare commits

..

165 commits
main ... ruby

Author SHA1 Message Date
5269c57e7b doc fix
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 19:15:08 +02:00
61a8d99140 cleanup
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 19:11:25 +02:00
fd03186d73 cfg
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 19:08:08 +02:00
b93482d125 remove unused permissions
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 19:02:14 +02:00
5a4a214f67 clippy
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 19:00:55 +02:00
e22236f201 dynamic resolutions docs
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 18:58:02 +02:00
f404ee91f2 cache ruby build
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 18:09:59 +02:00
2621e1ef53 wording
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 18:01:02 +02:00
bf9c94b7f0 fix docs
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 17:55:16 +02:00
c6f52bdc8d fix docs
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 17:53:19 +02:00
3e6e14fa71 installation docs
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 17:51:14 +02:00
97b448d6f4 fix build
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 17:29:05 +02:00
ad24866ba4 fix build
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 17:16:03 +02:00
0b68d54d53 fix build 2025-05-27 17:14:10 +02:00
acebb4b8c1 fix build 2025-05-27 17:11:22 +02:00
d0936c5549 fix build
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 17:08:07 +02:00
472d03bc38 build ruby 2025-05-27 17:05:59 +02:00
81fed90c5c install ruby in ci
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 11:38:31 +02:00
1dd1e07d16 rename
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 10:19:28 +02:00
3a9a048e34 fix job
Some checks failed
Test book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled
2025-05-27 10:18:25 +02:00
281f7851b7 add test book job
Some checks failed
Rust / build (pull_request) Has been cancelled
Test book / deploy (pull_request) Has been cancelled
2025-05-27 07:00:00 +02:00
35b4317040 ruby docs
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-27 07:00:00 +02:00
f9a7a9eb77 cleanup docs 2025-05-27 07:00:00 +02:00
97077338f9 fix lua docs 2025-05-27 07:00:00 +02:00
4b25bd0f18 fix ruby docs 2025-05-27 07:00:00 +02:00
0d03a47eed add book tasks 2025-05-27 07:00:00 +02:00
ba799ee110 set edition
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 22:47:00 +02:00
d505fb33aa book testing
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 22:45:50 +02:00
08e177dacd clippy
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 21:53:45 +02:00
410d246cd2 add ruby chapters
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:30:41 +02:00
60a22ca808 create chapter
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:29:00 +02:00
d3ea89a417 wording
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:27:02 +02:00
cdaceadd1b formatting
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:25:58 +02:00
663d54e729 docs
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:22:52 +02:00
836c31dbf1 docs
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:20:53 +02:00
d232ca45b1 docs emoji
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:17:46 +02:00
2d2ba975bb mention app dev in docs
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 17:04:52 +02:00
35dc89322e copy lua book chapters as starting point for ruby book
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 16:59:56 +02:00
679cfd8140 cleanup
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 07:00:00 +02:00
2bf20831be fix typo
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 15:52:07 +02:00
16ad6630dd fix errs
Some checks failed
Rust / build (pull_request) Has been cancelled
2025-05-26 07:00:00 +02:00
c49188847a improve err 2025-05-26 07:00:00 +02:00
fc490f5d13 improve err 2025-05-26 07:00:00 +02:00
20f2ad8fb1 improve errors 2025-05-26 07:00:00 +02:00
783183975a remove unwraps 2025-05-26 07:00:00 +02:00
10985ca777 refactor 2025-05-26 07:00:00 +02:00
da759a7e0b refactor 2025-05-26 07:00:00 +02:00
80e753812a clippy 2025-05-26 07:00:00 +02:00
9e29b803b6 cleanupp 2025-05-26 07:00:00 +02:00
1ea7e30c63 better errors 2025-05-26 07:00:00 +02:00
f211769dc4 remove unsafe 2025-05-26 07:00:00 +02:00
c763dd06d1 add backtrace 2025-05-26 07:00:00 +02:00
b339283901 error handling 2025-05-26 07:00:00 +02:00
db573426da conditional doctests 2025-05-26 07:00:00 +02:00
469e9aca15 clippy 2025-05-25 22:04:34 +02:00
d00b98edb9 add todos 2025-05-25 13:50:25 +02:00
8bf37d0d1a remove unwraps 2025-05-25 13:48:20 +02:00
0da69454c7 cleanup 2025-05-25 13:38:43 +02:00
822cf12d59 cleanup 2025-05-25 12:13:07 +02:00
a888888c9d cleanup 2025-05-25 12:11:12 +02:00
6f265c3ec5 add docs 2025-05-25 08:07:30 +02:00
b483dcf503 add documentation 2025-05-25 08:06:38 +02:00
06a7f51805 fix 2025-05-25 07:59:13 +02:00
04d2b6b93b rename 2025-05-25 07:56:35 +02:00
9e3dce14a2 bump rust edition 2025-05-24 22:51:07 +02:00
fc76c927ca fix example 2025-05-24 22:49:03 +02:00
e5eb7cc4f5 add example 2025-05-24 22:47:12 +02:00
20bf7121ff add example 2025-05-24 12:35:36 +02:00
7f7943fe84 add example 2025-05-24 12:33:13 +02:00
ca82a8f3a3 add example 2025-05-24 12:27:20 +02:00
9bec12deec add example 2025-05-24 12:18:52 +02:00
21828eea8d add example 2025-05-24 12:12:52 +02:00
1467fa3bba add todo 2025-05-23 21:30:44 +02:00
222aa10f2b add example 2025-05-23 21:29:36 +02:00
8c055c5ccb add example 2025-05-23 21:19:22 +02:00
2deec07a33 add example 2025-05-23 21:14:03 +02:00
2a2b2343d7 add example 2025-05-23 21:10:35 +02:00
9bcf3ee589 cleanup 2025-05-23 19:12:27 +02:00
e8b95f6099 cleanup 2025-05-23 19:03:36 +02:00
ebb6a50285 cleanup 2025-05-23 18:54:21 +02:00
2835d490f6 cleanup 2025-05-22 07:00:00 +02:00
e06fcecec9 add todo 2025-05-21 22:14:26 +02:00
35efc45a20 add todo 2025-05-21 22:12:55 +02:00
86e7567438 refactor 2025-05-21 22:09:30 +02:00
c75f158dfb refactor 2025-05-21 22:07:45 +02:00
992d19cba7 fix tests 2025-05-21 21:58:16 +02:00
992eb960cb add todo 2025-05-21 21:52:31 +02:00
853879ef6d fix rhai tests 2025-05-21 21:51:45 +02:00
3028b6fe4e clippy 2025-05-21 21:31:10 +02:00
521407a6ac refactor 2025-05-21 17:37:09 +02:00
49a3ac716d update 2025-05-21 07:00:00 +02:00
553abeb0c3 fix 2025-05-20 23:36:38 +02:00
07331f8d48 fix init 2025-05-20 22:20:05 +02:00
5d104a1d01 cleanup 2025-05-20 17:02:57 +02:00
b6e251dcca add todo 2025-05-20 07:00:00 +02:00
6bce009e04 fixes 2025-05-20 07:00:00 +02:00
4509375666 fix 2025-05-19 07:00:00 +02:00
d0746fa5db rb static link 2025-05-19 07:00:00 +02:00
b2ebf08805 add example 2025-05-19 07:00:00 +02:00
9438fa62bc add example 2025-05-19 07:00:00 +02:00
8d583642e9 add ruby example 2025-05-18 22:44:14 +02:00
d1f8297c5f cleanup 2025-05-18 22:36:04 +02:00
78eca45723 change rb api 2025-05-18 22:35:48 +02:00
900d1579ee Change ruby API 2025-05-18 22:33:44 +02:00
fb627ffdda less panics 2025-05-18 18:04:13 +02:00
b3cd04aad6 lua tests 2025-05-18 17:18:52 +02:00
015c1827ef add rhai tests 2025-05-18 17:07:03 +02:00
905c4c1f4b update 2025-05-18 16:55:51 +02:00
765c34c52e fix tests 2025-05-18 16:27:17 +02:00
dceb06133e aadd todo 2025-05-18 16:01:18 +02:00
3217b1b9fb vec3 2025-05-18 15:38:03 +02:00
c5a9f54695 pass entity 2025-05-16 07:00:00 +02:00
fccc822f9a entities 2025-05-16 07:00:00 +02:00
04d8845729 refactor 2025-05-15 17:39:07 +02:00
9b8b15ded7 cleanup 2025-05-15 17:38:15 +02:00
3e217c1865 add noop if no block given 2025-05-15 17:36:50 +02:00
33496446c9 remove some unwraps 2025-05-15 17:22:52 +02:00
8245f14737 cleanup 2025-05-15 07:00:00 +02:00
e654c7fa30 cleanup 2025-05-15 07:00:00 +02:00
ca703cb389 get rid of mlua feature 2025-05-15 07:00:00 +02:00
3962fc40b1 clippy 2025-05-15 07:00:00 +02:00
62fcdab69a use blocks instead of lambdas 2025-05-15 07:00:00 +02:00
bd4b377fc6 promise runtime err 2025-05-15 07:00:00 +02:00
2a05b9a50d all tests pass 2025-05-14 21:17:13 +02:00
03ec5d4941 add todo 2025-05-14 17:13:38 +02:00
8e7f15ed73 working promises 2025-05-14 17:09:08 +02:00
16b322b707 promises almost work 2025-05-14 16:55:12 +02:00
4abd59840c promise wip 2025-05-14 16:30:32 +02:00
ca508bef58 everyting but promises 2025-05-14 15:54:12 +02:00
763550b63a refactor ruby 2025-05-14 15:37:09 +02:00
0e5257e98c handle errors 2025-05-14 14:43:40 +02:00
d97096bc9f add tests 2025-05-14 14:17:12 +02:00
29689a0f6b remove todo 2025-05-14 14:07:19 +02:00
7eb4a346b8 add todo 2025-05-14 14:06:42 +02:00
e15fb74e64 func args 2025-05-14 14:05:31 +02:00
4b53e9d040 value conversions 2025-05-14 13:43:14 +02:00
7e886a5eef parse args 2025-05-14 10:48:20 +02:00
356e552ce7 wip callback call 2025-05-14 10:26:35 +02:00
b498da957d args wip 2025-05-13 22:42:39 +02:00
008771bb15 cleanup 2025-05-13 18:25:34 +02:00
e92a3afe9f no explicit drop 2025-05-13 18:11:49 +02:00
d02b6375c6 get rid of warnings 2025-05-13 18:02:57 +02:00
9db84f0360 rename 2025-05-13 17:53:56 +02:00
4ccedf442b add todo 2025-05-13 17:45:39 +02:00
54a47572db add api for remote thread engine access 2025-05-13 17:44:20 +02:00
fcf2680824 ruby thread ensure single access 2025-05-13 10:58:00 +02:00
c46391871f get by name 2025-05-12 12:15:41 +02:00
19bb6514ed enable test 2025-05-12 12:10:23 +02:00
cbde11d17b callbacks global 2025-05-12 12:08:04 +02:00
e95f025b07 func call 2025-05-11 11:50:39 +02:00
191cfce733 get rid of warnings 2025-05-10 16:37:56 +02:00
253761c730 wip 2025-05-10 16:35:31 +02:00
0a9dc09b0c no panic in thread 2025-05-10 10:18:55 +02:00
f3bcacbf14 return val 2025-05-10 10:02:42 +02:00
a3a40182f5 ruby thread spawn one per binary 2025-05-10 09:20:18 +02:00
aee3276f2b execute ruby stuff on ruby thread 2025-05-09 22:43:16 +02:00
e82278155a ruby thread channel 2025-05-09 21:13:45 +02:00
02d0662294 create ruby thread 2025-05-09 20:49:41 +02:00
b307cf6c13 call rust from ruby 2025-05-09 18:42:37 +02:00
a4c5911603 call rust from ruby 2025-05-09 18:19:44 +02:00
6be5a4dec1 pass simple test 2025-05-09 13:40:29 +02:00
417f4a1bfa init engine 2025-05-09 13:11:33 +02:00
5c8ec10ae9 add nvim config to gitignore 2025-05-08 23:48:45 +02:00
d8f74b0d12 fix tests 2025-05-08 23:31:10 +02:00
096710d118 ruby boilerplate 2025-05-08 23:18:42 +02:00
10 changed files with 33 additions and 52 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "bevy_scriptum"
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
version = "0.9.1"
version = "0.8.1"
edition = "2024"
license = "MIT OR Apache-2.0"
readme = "README.md"
@ -32,7 +32,7 @@ mlua = { version = "0.9.8", features = [
"send",
], optional = true }
magnus = { version = "0.7.1", optional = true }
rb-sys = { version = "0.9", default-features = false, features = ["link-ruby", "ruby-static"], optional = true }
rb-sys = { version = "*", default-features = false, features = ["link-ruby", "ruby-static"], optional = true }
crossbeam-channel = "0.5.15"
libc = "0.2.172"

View file

@ -5,11 +5,11 @@
bevy_scriptum is a a plugin for [Bevy](https://bevyengine.org/) that allows you to write some of your game or application logic in a scripting language.
### Supported scripting languages/runtimes
| language/runtime | cargo feature | documentation chapter |
| ------------------------------------------ | ------------- | --------------------------------------------------------------- |
| 🌙 LuaJIT | `lua` | [link](https://jarkonik.github.io/bevy_scriptum/lua/lua.html) |
| 🌾 Rhai | `rhai` | [link](https://jarkonik.github.io/bevy_scriptum/rhai/rhai.html) |
| 💎 Ruby(currently only supported on Linux) | `ruby` | [link](https://jarkonik.github.io/bevy_scriptum/ruby/ruby.html) |
| language/runtime | cargo feature | documentation chapter |
| ----------------- | ------------- | --------------------------------------------------------------- |
| 🌙 LuaJIT | `lua` | [link](https://jarkonik.github.io/bevy_scriptum/lua/lua.html) |
| 🌾 Rhai | `rhai` | [link](https://jarkonik.github.io/bevy_scriptum/rhai/rhai.html) |
| 💎 Ruby | `ruby` | [link](https://jarkonik.github.io/bevy_scriptum/ruby/ruby.html) |
Documentation book is available [here](https://jarkonik.github.io/bevy_scriptum/) 📖
@ -98,7 +98,7 @@ Add the following to your `Cargo.toml`:
```toml
[dependencies]
bevy_scriptum = { version = "0.9", features = ["lua"] }
bevy_scriptum = { version = "0.8", features = ["lua"] }
```
or execute `cargo add bevy_scriptum --features lua` from your project directory.
@ -167,7 +167,7 @@ The examples live in `examples` directory and their corresponding scripts live i
| bevy version | bevy_scriptum version |
|--------------|-----------------------|
| 0.16 | 0.8-0.9 |
| 0.16 | 0.8 |
| 0.15 | 0.7 |
| 0.14 | 0.6 |
| 0.13 | 0.4-0.5 |

View file

@ -7,7 +7,7 @@ currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| 0.9 | :white_check_mark: |
| 0.8 | :white_check_mark: |
## Reporting a Vulnerability

View file

@ -2,7 +2,7 @@
| bevy version | bevy_scriptum version |
| ------------ | --------------------- |
| 0.16 | 0.8-0.9 |
| 0.16 | 0.8 |
| 0.15 | 0.7 |
| 0.14 | 0.6 |
| 0.13 | 0.4-0.5 |

View file

@ -2,20 +2,19 @@
bevy_scriptum is a a plugin for [Bevy](https://bevyengine.org/) that allows you to write some of your game or application logic in a scripting language.
## Supported scripting languages/runtimes
## Supported scripting languages/runtimes
| language/runtime | cargo feature | documentation chapter |
| ---------------- | ------------- | --------------------------------------------------------------- |
| 🌙 LuaJIT | `lua` | [link](https://jarkonik.github.io/bevy_scriptum/lua/lua.html) |
| 🌾 Rhai | `rhai` | [link](https://jarkonik.github.io/bevy_scriptum/rhai/rhai.html) |
| 💎 Ruby | `ruby` | [link](https://jarkonik.github.io/bevy_scriptum/ruby/ruby.html) |
| language/runtime | cargo feature | documentation chapter |
| ----------------- | ------------- | --------------------------------------------------------------- |
| 🌙 LuaJIT | `lua` | [link](https://jarkonik.github.io/bevy_scriptum/lua/lua.html) |
| 🌾 Rhai | `rhai` | [link](https://jarkonik.github.io/bevy_scriptum/rhai/rhai.html) |
| 💎 Ruby | `ruby` | [link](https://jarkonik.github.io/bevy_scriptum/ruby/ruby.html) |
Documentation book is available [here](https://jarkonik.github.io/bevy_scriptum/) 📖
Documentation book is available [here](https://jarkonik.github.io/bevy_scriptum/) 📖
Full API docs are available at [docs.rs](https://docs.rs/bevy_scriptum/latest/bevy_scriptum/) 🧑‍💻
Full API docs are available at [docs.rs](https://docs.rs/bevy_scriptum/latest/bevy_scriptum/) 🧑‍💻
bevy_scriptum's main advantages include:
- low-boilerplate
- easy to use
- asynchronicity with a promise-based API
@ -25,7 +24,6 @@ bevy_scriptum's main advantages include:
Scripts are separate files that can be hot-reloaded at runtime. This allows you to quickly iterate on your game logic without having to recompile it.
All you need to do is register callbacks on your Bevy app like this:
```rust,no_run
# extern crate bevy;
# extern crate bevy_scriptum;
@ -45,9 +43,7 @@ fn main() {
.run();
}
```
And you can call them in your scripts like this:
```lua
hello_bevy()
```
@ -84,7 +80,6 @@ fn main() {
```
You can also pass arguments to your callback functions, just like you would in a regular Bevy system - using `In` structs with tuples:
```rust,no_run
# extern crate bevy;
# extern crate bevy_scriptum;
@ -107,9 +102,7 @@ fn main() {
.run();
}
```
which you can then call in your script like this:
```lua
fun_with_string_param("Hello world!")
```
@ -120,7 +113,7 @@ Add the following to your `Cargo.toml`:
```toml
[dependencies]
bevy_scriptum = { version = "0.9", features = ["lua"] }
bevy_scriptum = { version = "0.8", features = ["lua"] }
```
or execute `cargo add bevy_scriptum --features lua` from your project directory.
@ -188,12 +181,11 @@ You should then see `my_print: 'Hello world!'` printed in your console.
### Provided examples
You can also try running provided examples by cloning this repository and running `cargo run --example <example_name>_<language_name>`. For example:
You can also try running provided examples by cloning this repository and running `cargo run --example <example_name>_<language_name>`. For example:
```bash
cargo run --example hello_world_lua
```
The examples live in `examples` directory and their corresponding scripts live in `assets/examples` directory within the repository.
### Promises - getting return values from scripts
@ -205,7 +197,6 @@ get_player_name():and_then(function(name)
print(name)
end)
```
which will print out `John` when used with following exposed function:
```rust,no_run
@ -223,7 +214,7 @@ fn main() {
runtime.add_function(String::from("get_player_name"), || String::from("John"));
});
}
```
````
## Access entity from script
@ -231,7 +222,6 @@ A variable called `entity` is automatically available to all scripts - it repres
It exposes `index` property that returns bevy entity index.
It is useful for accessing entity's components from scripts.
It can be used in the following way:
```lua
print("Current entity index: " .. entity.index)
```

View file

@ -5,7 +5,7 @@ Add the following to your `Cargo.toml`:
```toml
[dependencies]
bevy = "0.16"
bevy_scriptum = { version = "0.9", features = ["lua"] }
bevy_scriptum = { version = "0.8", features = ["lua"] }
```
If you need a different version of bevy you need to use a matching bevy_scriptum

View file

@ -5,7 +5,7 @@ Add the following to your `Cargo.toml`:
```toml
[dependencies]
bevy = "0.16"
bevy_scriptum = { version = "0.9", features = ["rhai"] }
bevy_scriptum = { version = "0.8", features = ["rhai"] }
```
If you need a different version of bevy you need to use a matching bevy_scriptum

View file

@ -1,7 +1,5 @@
# Installation
Ruby is currently only supported on Linux.
## Ruby
To build `bevy_scriptum` with Ruby support a Ruby installation is needed to be
@ -35,7 +33,7 @@ Add the following to your `Cargo.toml`:
```toml
[dependencies]
bevy = "0.16"
bevy_scriptum = { version = "0.9", features = ["ruby"] }
bevy_scriptum = { version = "0.8", features = ["ruby"] }
```
If you need a different version of bevy you need to use a matching bevy_scriptum

View file

@ -1,4 +1,3 @@
# Ruby
This chapter demonstrates how to work with bevy_scriptum when using Ruby language runtime.
Ruby is currently only supported on Linux.

View file

@ -4,11 +4,11 @@
//! ## Supported scripting languages/runtimes
//!
//! | language/runtime | cargo feature | documentation chapter |
//! | ------------------------------------------ | ------------- | --------------------------------------------------------------- |
//! | 🌙 LuaJIT | `lua` | [link](https://jarkonik.github.io/bevy_scriptum/lua/lua.html) |
//! | 🌾 Rhai | `rhai` | [link](https://jarkonik.github.io/bevy_scriptum/rhai/rhai.html) |
//! | 💎 Ruby(currently only supported on Linux) | `ruby` | [link](https://jarkonik.github.io/bevy_scriptum/ruby/ruby.html) |
//! | language/runtime | cargo feature | documentation chapter |
//! | ----------------- | ------------- | --------------------------------------------------------------- |
//! | 🌙 LuaJIT | `lua` | [link](https://jarkonik.github.io/bevy_scriptum/lua/lua.html) |
//! | 🌾 Rhai | `rhai` | [link](https://jarkonik.github.io/bevy_scriptum/rhai/rhai.html) |
//! | 💎 Ruby | `ruby` | [link](https://jarkonik.github.io/bevy_scriptum/ruby/ruby.html) |
//!
//! Documentation book is available [here](https://jarkonik.github.io/bevy_scriptum/) 📖
//!
@ -103,7 +103,7 @@
//!
//! ```toml
//! [dependencies]
//! bevy_scriptum = { version = "0.9", features = ["lua"] }
//! bevy_scriptum = { version = "0.8", features = ["lua"] }
//! ```
//!
//! or execute `cargo add bevy_scriptum --features lua` from your project directory.
@ -176,7 +176,7 @@
//!
//! | bevy version | bevy_scriptum version |
//! |--------------|-----------------------|
//! | 0.16 | 0.8-0.9 |
//! | 0.16 | 0.8 |
//! | 0.15 | 0.7 |
//! | 0.14 | 0.6 |
//! | 0.13 | 0.4-0.5 |
@ -510,7 +510,7 @@ impl<R: Runtime> Default for Callbacks<R> {
}
}
#[cfg(all(debug_assertions, unix))]
#[cfg(debug_assertions)]
pub extern "C" fn is_rdynamic_linking() -> bool {
unsafe {
// Get a function pointer to itself
@ -524,12 +524,6 @@ pub extern "C" fn is_rdynamic_linking() -> bool {
}
}
#[cfg(any(not(debug_assertions), not(unix)))]
pub extern "C" fn is_rdynamic_linking() -> bool {
// On Windows or in release builds, return a default value
true
}
pub mod prelude {
pub use crate::{BuildScriptingRuntime as _, Runtime as _, Script};
}