Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ license = "Apache-2.0"

[dependencies]
bevy_ecs = "0.18.1"
pd-host-function = { git = "https://github.com/rustscript-lang/rustscript", rev = "805991cfc6d81e7b9d6c042a222ecf70e3f2dab0" }
vm = { package = "pd-vm", git = "https://github.com/rustscript-lang/rustscript", rev = "805991cfc6d81e7b9d6c042a222ecf70e3f2dab0", default-features = false, features = ["runtime"] }
pd-host-function = { git = "https://github.com/rustscript-lang/rustscript", rev = "2f433edab3f1907e8cb060e901357d7e2af016ce" }
vm = { package = "pd-vm", git = "https://github.com/rustscript-lang/rustscript", rev = "2f433edab3f1907e8cb060e901357d7e2af016ce", default-features = false, features = ["runtime"] }
web-time = "1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
vm = { package = "pd-vm", git = "https://github.com/rustscript-lang/rustscript", rev = "805991cfc6d81e7b9d6c042a222ecf70e3f2dab0", default-features = false, features = ["cranelift-jit"] }
vm = { package = "pd-vm", git = "https://github.com/rustscript-lang/rustscript", rev = "2f433edab3f1907e8cb060e901357d7e2af016ce", default-features = false, features = ["cranelift-jit"] }

[dev-dependencies]
bevy = { version = "0.18.1", default-features = false, features = ["default_app", "bevy_winit", "x11", "bevy_render", "bevy_core_pipeline", "bevy_sprite", "bevy_sprite_render", "bevy_text", "bevy_ui", "bevy_ui_render", "default_font", "png"] }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Standalone Bevy integration demo for `pd-vm` / RustScript.

Play in your browser: **[RustScript Arcade](https://bevy.rustscript.org/)** — [Shooter](https://bevy.rustscript.org/shooter/), [Gomoku](https://bevy.rustscript.org/gomoku/), [Xiangqi](https://bevy.rustscript.org/xiangqi/).

RustScript core is pinned to `805991cfc6d81e7b9d6c042a222ecf70e3f2dab0` through Git dependencies. This is the latest host-descriptor integration branch revision, compatible with the upstream gameplay migration; core master currently has a different host API. A sibling core checkout is no longer required.
RustScript core is pinned to `2f433edab3f1907e8cb060e901357d7e2af016ce` through Git dependencies. That revision carries the `Unit` / `Option` / `Result` host schema used by the gameplay descriptors; a sibling core checkout is not required.

## Screenshots

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub use shooter_runtime::{
};

/// Frozen `rustscript-lang/rustscript` revision this crate is pinned to.
pub const FROZEN_RUSTSCRIPT_REV: &str = "805991cfc6d81e7b9d6c042a222ecf70e3f2dab0";
pub const FROZEN_RUSTSCRIPT_REV: &str = "2f433edab3f1907e8cb060e901357d7e2af016ce";

#[derive(Component, Debug, Clone, Copy, PartialEq, Eq)]
pub struct Health(pub i64);
Expand Down
4 changes: 2 additions & 2 deletions tests/host_descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use vm::{
/// lowercase hex digits). Bump together with [`BEVY_HOST_CATALOG_FINGERPRINT_U64`]
/// when the guest catalog surface or frozen pd-vm fingerprint encoding changes.
/// See [`bevy_host_catalog`] for the full policy.
const BEVY_HOST_CATALOG_FINGERPRINT_HEX: &str = "c4b1c4887b21bd02";
const BEVY_HOST_CATALOG_FINGERPRINT_HEX: &str = "2a31bac6f8b1c529";
/// Exact `u64` form of the same digest. Keep in lockstep with the hex snapshot.
const BEVY_HOST_CATALOG_FINGERPRINT_U64: u64 = 0xc4b1c4887b21bd02;
const BEVY_HOST_CATALOG_FINGERPRINT_U64: u64 = 0x2a31bac6f8b1c529;

const LISTED_HOST_SOURCE: &str = "use bevy;\nbevy::World::contains_entity();\n";
const UNLISTED_HOST_SOURCE: &str = "use bevy;\nbevy::World::not_a_host();\n";
Expand Down
Loading