Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for publication #175

Merged
merged 3 commits into from
Jan 30, 2024
Merged
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
54 changes: 27 additions & 27 deletions Cargo.lock

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

7 changes: 6 additions & 1 deletion crates/bevy_plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "bevy_yarnspinner"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"
exclude = ["assets", "wasm"]

Expand All @@ -14,7 +19,7 @@ anyhow = "1"
csv = "1"
seldom_fn_plugin = "0.5"
serde = { version = "1", features = ["derive"] }
yarnspinner = { path = "../yarnspinner", features = ["bevy", "serde"] }
yarnspinner = { path = "../yarnspinner", features = ["bevy", "serde"], version = "0.1" }
sha2 = "0.10"
rand = { version = "0.8", features = ["small_rng"] }

Expand Down
5 changes: 5 additions & 0 deletions crates/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "yarnspinner_codegen"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"

[features]
Expand Down
11 changes: 8 additions & 3 deletions crates/compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "yarnspinner_compiler"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"

[features]
Expand All @@ -13,10 +18,10 @@ bevy = ["dep:bevy", "yarnspinner_core/bevy"]
antlr-rust = "=0.3.0-beta"
better_any = "=0.2.0"
regex = "1"
yarnspinner_core = { path = "../core" }
yarnspinner_core = { path = "../core", version = "0.1" }
thiserror = "1"
strum = "0.25"
strum_macros = "0.25"
strum = "0.26"
strum_macros = "0.26"
annotate-snippets = "0.10"
serde = { version = "1", features = ["derive"], optional = true }
bevy = { version = "0.12", default-features = false, optional = true }
Expand Down
11 changes: 8 additions & 3 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "yarnspinner_core"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"

[features]
Expand All @@ -12,9 +17,9 @@ bevy = ["dep:bevy"]
[dependencies]
bytes = "1"
paste = "1"
yarnspinner_macros = { path = "../macros" }
strum = "0.25"
strum_macros = "0.25"
yarnspinner_macros = { path = "../macros", version = "0.1" }
strum = "0.26"
strum_macros = "0.26"
thiserror = "1"
prost = "0.12"
serde = { version = "1", features = ["derive"], optional = true }
Expand Down
7 changes: 6 additions & 1 deletion crates/example_dialogue_view/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
name = "bevy_yarnspinner_example_dialogue_view"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"
exclude = ["assets", "wasm"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy_yarnspinner = { path = "../bevy_plugin" }
bevy_yarnspinner = { path = "../bevy_plugin", version = "0.1" }
unicode-segmentation = "1"
seldom_fn_plugin = "0.5"

Expand Down
5 changes: 5 additions & 0 deletions crates/macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "yarnspinner_macros"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"

[lib]
Expand Down
7 changes: 6 additions & 1 deletion crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "yarnspinner_runtime"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"

[features]
Expand All @@ -15,7 +20,7 @@ serde = [
bevy = ["dep:bevy", "yarnspinner_core/bevy"]

[dependencies]
yarnspinner_core = { path = "../core" }
yarnspinner_core = { path = "../core", version = "0.1" }
unicode-normalization = "0.1"
unicode-segmentation = "1"
log = "0.4"
Expand Down
11 changes: 8 additions & 3 deletions crates/yarnspinner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
name = "yarnspinner"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
license = "MIT OR Apache-2.0"

[features]
Expand All @@ -20,9 +25,9 @@ bevy = [
]

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

[dev-dependencies]
Expand Down
10 changes: 7 additions & 3 deletions demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
name = "bevy_yarnspinner_demo"
version = "0.1.0"
edition = "2021"
publish = false
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]

[features]
default = []
editor = ["dep:bevy_editor_pls"]

[dependencies]
bevy = "0.12"
bevy_yarnspinner = { path = "../crates/bevy_plugin" }
bevy_yarnspinner_example_dialogue_view = { path = "../crates/example_dialogue_view" }
bevy_yarnspinner = { path = "../crates/bevy_plugin", version = "0.1" }
bevy_yarnspinner_example_dialogue_view = { path = "../crates/example_dialogue_view", version = "0.1" }
bevy_sprite3d = "2.7"
bevy_editor_pls = { version = "0.7", optional = true }
4 changes: 2 additions & 2 deletions docs/src/bevy_plugin/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Run the following in your terminal to create a new crate with the required depen
```bash
cargo new yarnspinner_playground
cd yarnspinner_playground
cargo add bevy --features filesystem_watcher
cargo add bevy_yarnspinner bevy_yarnspinner_example_dialogue_view --git "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
cargo add bevy --features file_watcher
cargo add bevy_yarnspinner bevy_yarnspinner_example_dialogue_view
```

The line `cargo add bevy --features filesystem_watcher` ensures that we can use *hot reloading* in our project, which means that we can edit the Yarn files
Expand Down
9 changes: 7 additions & 2 deletions examples/bevy_yarnspinner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
name = "yarnspinner_examples"
version = "0.1.0"
edition = "2021"
repository = "https://github.com/YarnSpinnerTool/YarnSpinner-Rust"
homepage = "https://docs.yarnspinner.dev/"
keywords = ["gamedev", "dialog", "yarn", "bevy"]
categories = ["game-development", "compilers"]
authors = ["Jan Hohenheim <[email protected]>"]
publish = false

[dependencies]
bevy = "0.12"
bevy_yarnspinner = { path = "../../crates/bevy_plugin" }
bevy_yarnspinner_example_dialogue_view = { path = "../../crates/example_dialogue_view" }
bevy_yarnspinner = { path = "../../crates/bevy_plugin", version = "0.1" }
bevy_yarnspinner_example_dialogue_view = { path = "../../crates/example_dialogue_view", version = "0.1" }
Loading
Loading