Skip to content

Commit 7846b55

Browse files
committed
Support bevy 0.13
1 parent 407da8d commit 7846b55

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bevy_scriptum"
33
authors = ["Jaroslaw Konik <konikjar@gmail.com>"]
4-
version = "0.3.0"
4+
version = "0.4.0"
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
@@ -13,7 +13,7 @@ keywords = ["bevy", "rhai", "scripting", "game", "gamedev"]
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
bevy = { default-features = false, version = "0.12.0", features = [
16+
bevy = { default-features = false, version = "0.13.0", features = [
1717
"bevy_asset",
1818
] }
1919
serde = "1.0.162"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ The examples live in `examples` directory and their corresponding scripts live i
144144

145145
| bevy version | bevy_scriptum version |
146146
|--------------|----------------------|
147+
| 0.13 | 0.4 |
147148
| 0.12 | 0.3 |
148149
| 0.11 | 0.2 |
149150
| 0.10 | 0.1 |

src/assets.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
use bevy::{
22
asset::{io::Reader, Asset, AssetLoader, AsyncReadExt as _, LoadContext},
3-
reflect::{TypePath, TypeUuid},
3+
reflect::TypePath,
44
utils::BoxedFuture,
55
};
66
use serde::Deserialize;
77

88
/// A script that can be loaded by the [crate::ScriptingPlugin].
9-
#[derive(Asset, Debug, Deserialize, TypeUuid, TypePath)]
10-
#[uuid = "3ed4b68b-4f5d-4d82-96f6-5194e358921a"]
9+
#[derive(Asset, Debug, Deserialize, TypePath)]
1110
pub struct RhaiScript(pub String);
1211

1312
/// A loader for [RhaiScript] assets.

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
//!
143143
//! | bevy version | bevy_scriptum version |
144144
//! |--------------|----------------------|
145+
//! | 0.13 | 0.4 |
145146
//! | 0.12 | 0.3 |
146147
//! | 0.11 | 0.2 |
147148
//! | 0.10 | 0.1 |

0 commit comments

Comments
 (0)