Skip to content

Commit

Permalink
Bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Jun 11, 2024
1 parent 0d89619 commit 7f2b2b6
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 46 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions crates/bevy_plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_yarnspinner"
version = "0.2.0"
version = "0.3.0-rc"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand All @@ -20,7 +20,7 @@ audio_assets = ["bevy/bevy_audio", "bevy/vorbis"]
anyhow = "1"
csv = "1"
serde = { version = "1", features = ["derive"] }
yarnspinner = { path = "../yarnspinner", features = ["bevy", "serde"], version = "0.2" }
yarnspinner = { path = "../yarnspinner", features = ["bevy", "serde"], version = "0.3" }
sha2 = "0.10"
rand = { version = "0.8", features = ["small_rng"] }

Expand All @@ -37,8 +37,8 @@ tempfile = "3"
version = "0.14.0-rc.2"
default-features = false
features = [
"bevy_core_pipeline",
"bevy_audio",
"bevy_core_pipeline",
"bevy_audio",
]

[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "android")))'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crates/compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yarnspinner_compiler"
version = "0.2.1"
version = "0.3.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand All @@ -18,7 +18,7 @@ bevy = ["dep:bevy", "yarnspinner_core/bevy"]
antlr-rust = "=0.3.0-beta"
better_any = "=0.2.0"
regex = "1"
yarnspinner_core = { path = "../core", version = "0.2" }
yarnspinner_core = { path = "../core", version = "0.3" }
annotate-snippets = "0.10"
serde = { version = "1", features = ["derive"], optional = true }
bevy = { version = "0.14.0-rc.2", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yarnspinner_core"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand Down
4 changes: 2 additions & 2 deletions crates/example_dialogue_view/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_yarnspinner_example_dialogue_view"
version = "0.2.1"
version = "0.3.0-rc"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand All @@ -14,7 +14,7 @@ readme = "../../readme.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy_yarnspinner = { path = "../bevy_plugin", version = "0.2" }
bevy_yarnspinner = { path = "../bevy_plugin", version = "0.3.0-rc" }
unicode-segmentation = "1"

[dependencies.bevy]
Expand Down
12 changes: 6 additions & 6 deletions crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yarnspinner_runtime"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand All @@ -12,15 +12,15 @@ description = "Runtime / VM for Yarn Spinner for Rust, the friendly tool for wri
[features]
default = []
serde = [
"dep:serde",
"bevy?/serialize",
"yarnspinner_core/serde",
"icu_locid/serde",
"dep:serde",
"bevy?/serialize",
"yarnspinner_core/serde",
"icu_locid/serde",
]
bevy = ["dep:bevy", "yarnspinner_core/bevy"]

[dependencies]
yarnspinner_core = { path = "../core", version = "0.2" }
yarnspinner_core = { path = "../core", version = "0.3" }
unicode-normalization = "0.1"
unicode-segmentation = "1"
log = "0.4"
Expand Down
8 changes: 4 additions & 4 deletions crates/yarnspinner/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yarnspinner"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
Expand All @@ -27,9 +27,9 @@ bevy = [
]

[dependencies]
yarnspinner_core = { path = "../core", version = "0.2" }
yarnspinner_compiler = { path = "../compiler", version = "0.2" }
yarnspinner_runtime = { path = "../runtime", version = "0.2" }
yarnspinner_core = { path = "../core", version = "0.3" }
yarnspinner_compiler = { path = "../compiler", version = "0.3" }
yarnspinner_runtime = { path = "../runtime", version = "0.3" }
log = { version = "0.4", features = ["std"] }

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ description = "A demo for Bevy Yarn Spinner for Rust, the friendly tool for writ
license = "MIT OR Apache-2.0"

[dependencies]
bevy = "0.14.0-rc.2"
bevy_yarnspinner = { path = "../crates/bevy_plugin", version = "0.2" }
bevy_yarnspinner_example_dialogue_view = { path = "../crates/example_dialogue_view", version = "0.2" }
bevy = { version = "0.14.0-rc.2" }
bevy_yarnspinner = { path = "../crates/bevy_plugin", version = "0.3.0-rc" }
bevy_yarnspinner_example_dialogue_view = { path = "../crates/example_dialogue_view", version = "0.3.0-rc" }
# waiting for https://github.com/FraserLee/bevy_sprite3d/pull/21 to be merged
bevy_sprite3d = { git = "https://github.com/janhohenheim/bevy_sprite3d", branch = "bevy-0.14.0-rc.2" }
4 changes: 2 additions & 2 deletions examples/bevy_yarnspinner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ publish = false

[dependencies]
bevy = { version = "0.14.0-rc.2", features = ["file_watcher"] }
bevy_yarnspinner = { path = "../../crates/bevy_plugin", version = "0.2" }
bevy_yarnspinner_example_dialogue_view = { path = "../../crates/example_dialogue_view", version = "0.2" }
bevy_yarnspinner = { path = "../../crates/bevy_plugin", version = "0.3.0-rc" }
bevy_yarnspinner_example_dialogue_view = { path = "../../crates/example_dialogue_view", version = "0.3.0-rc" }

[[bin]]
name = "access_variables"
Expand Down
4 changes: 2 additions & 2 deletions examples/yarnspinner_without_bevy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publish = false
crossterm = "0.27"
ratatui = "0.26"
anyhow = "1.0"
yarnspinner = { path = "../../crates/yarnspinner", version = "0.2" }
yarnspinner = { path = "../../crates/yarnspinner", version = "0.3" }

[[bin]]
name = "access_variables"
Expand All @@ -29,4 +29,4 @@ doc = false

[[bin]]
name = "hello_world"
doc = false
doc = false
36 changes: 22 additions & 14 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
# Yarn Spinner for Rust

[![Crates.io](https://img.shields.io/crates/v/bevy_yarnspinner.svg)](https://crates.io/crates/bevy_yarnspinner)
[![Docs](https://docs.rs/bevy_yarnspinner/badge.svg)](https://docs.rs/bevy_yarnspinner/latest/bevy_yarnspinner/)
[![Discord](https://img.shields.io/discord/754171172693868585.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/yarnspinner)
> **Note:**
> Yarn Spinner for Rust is a work-in-progress project. We don't currently offer any official support for it. We encourage you to file [issues](https://github.com/YarnSpinnerTool/YarnSpinner-Rust/issues/new) if you have them, and to join the official [Yarn Spinner Discord](https://discord.gg/yarnspinner) to discuss the project!
> Yarn Spinner for Rust is a work-in-progress project. We don't currently offer any official support for it. We encourage you to
> file [issues](https://github.com/YarnSpinnerTool/YarnSpinner-Rust/issues/new) if you have them, and to join the official [Yarn Spinner Discord](https://discord.gg/yarnspinner) to discuss the project!
The Rust port of Yarn Spinner, the friendly tool for writing game dialogue. Read more on [docs.yarnspinner.dev](https://docs.yarnspinner.dev/using-yarnspinner-with-rust/overview) or check out
The Rust port of Yarn Spinner, the friendly tool for writing game dialogue. Read more on [docs.yarnspinner.dev](https://docs.yarnspinner.dev/using-yarnspinner-with-rust/overview) or check out
the [live demo](https://janhohenheim.itch.io/yarnspinner-rust-demo), which was written using the [Bevy engine](https://bevyengine.org/).
This project offers first class support for Bevy and assumes you are using it. If you are not, check out the [relevant section of the book](https://yarnspinnertool.github.io/YarnSpinner-Rust/working_without_bevy)
This project offers first class support for Bevy and assumes you are using it. If you are not, check out
the [relevant section of the book](https://yarnspinnertool.github.io/YarnSpinner-Rust/working_without_bevy)

[![Yarn Spinner for Rust Demo](https://img.itch.zone/aW1hZ2UvMjExMjc5NC8xMjQ0MjEwNy5wbmc=/original/LpAOnR.png)](https://janhohenheim.itch.io/yarn-slinger-demo)

## Quickstart

Taken straight from our [examples](https://github.com/YarnSpinnerTool/YarnSpinner-Rust/tree/main/examples/bevy_yarnspinner):

First, let's add our dependencies:

```bash
cargo add bevy bevy_yarnspinner bevy_yarnspinner_example_dialogue_view
```

Now, the `main.rs`:

```rust
use bevy::prelude::*;
use bevy_yarnspinner::prelude::*;
Expand All @@ -36,13 +42,13 @@ fn main() {
// Initialize the bundled example UI
ExampleYarnSpinnerDialogueViewPlugin::new(),
))
.add_systems(Startup, setup_camera)
.add_systems(
Update,
// Spawn the dialogue runner once the Yarn project has finished compiling
spawn_dialogue_runner.run_if(resource_added::<YarnProject>()),
)
.run();
.add_systems(Startup, setup_camera)
.add_systems(
Update,
// Spawn the dialogue runner once the Yarn project has finished compiling
spawn_dialogue_runner.run_if(resource_added::<YarnProject>()),
)
.run();
}

fn setup_camera(mut commands: Commands) {
Expand All @@ -59,6 +65,7 @@ fn spawn_dialogue_runner(mut commands: Commands, project: Res<YarnProject>) {
```

And finally, the `assets/dialogue/hello_world.yarn`:

```text
title: HelloWorld
---
Expand Down Expand Up @@ -98,7 +105,8 @@ Et voilà! That was all. Thanks for checking out Yarn Spinner for Rust! Continui

## Version Table

| Bevy | Yarn Spinner for Rust |
|------|-----------------------|
| 0.13 | 0.2 |
| 0.12 | 0.1 |
| Bevy | Yarn Spinner for Rust |
|-------------|-----------------------|
| 0.14.0-rc.2 | 0.3.0-rc |
| 0.13 | 0.2 |
| 0.12 | 0.1 |

0 comments on commit 7f2b2b6

Please sign in to comment.