Skip to content

Commit

Permalink
Bump to version 0.3.0 (#377)
Browse files Browse the repository at this point in the history
* Bump version of dependencies for the next release

* Update the README and examples

* Fix the lyon example

* Create a script that automates most of the release procedures

* Update the example HTML file

* Update the website for 0.3

* Update the available features list in the README and website

* Bump the version
  • Loading branch information
ryanisaacg authored Sep 16, 2018
1 parent 21f81f1 commit 210b737
Show file tree
Hide file tree
Showing 38 changed files with 7,618 additions and 420 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "quicksilver"
description = "A simple game framework for 2D games in pure Rust"
version = "0.2.1"
version="0.3.0"
authors = ["Ryan Goldstein <[email protected]>"]
categories = ["game-engines"]
homepage = "https://ryanisaacg.github.io/quicksilver"
Expand All @@ -11,7 +11,7 @@ readme = "README.md"
repository = "https://github.com/ryanisaacg/quicksilver"

[features]
default = ["collisions", "fonts", "gamepads", "saving", "sounds"]
default = ["collisions", "complex_shapes", "fonts", "gamepads", "saving", "sounds"]

collisions = ["nalgebra", "ncollide2d"]
complex_shapes = ["lyon"]
Expand All @@ -33,14 +33,14 @@ lyon = { version = "0.11", features = ["extra"], optional = true }
rand = { version = "0.5.0", features = ["stdweb"] }
serde = "1.0"
serde_derive = "1.0"
nalgebra = { version = "0.15.1", optional = true }
ncollide2d = { version = "0.16.0", optional = true }
nalgebra = { version = "0.16", features = ["stdweb"], optional = true }
ncollide2d = { version = "0.17", optional = true }
immi = { version = "1.0", optional = true }
rusttype = { version = "0.6", optional = true }
rusttype = { version = "0.7", optional = true }
serde_json = { version = "1.0", optional = true }

[dev-dependencies]
alga = "0.6"
alga = "0.7"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
gl = "0.10"
Expand Down
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ collision support (via [ncollide2d](https://github.com/sebcrozet/ncollide)),
font support (via [rusttype](https://github.com/redox-os/rusttype)),
gamepad support (via [gilrs](https://gitlab.com/gilrs-project/gilrs)),
saving (via [serde_json](https://github.com/serde-rs/json)),
complex shape / svg rendering (via [lyon](https://github.com/nical/lyon)),
immediate-mode GUIs (via [immi](https://github.com/tomaka/immi)),
and sounds (via [rodio](https://github.com/tomaka/rodio)).

Each are enabled by default, but you can [specify which features](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#choosing-features) you actually want to use.
Expand All @@ -119,22 +121,6 @@ There are no plans to support mobile / touch-primary platforms, as the paradigms

There is one exception: macOS does not currently support gamepads, see [gilrs-core issue #1](https://gitlab.com/gilrs-project/gilrs-core/issues/1)

## What's included?

- 2D geometry: Vectors, Transformation matrices, Rectangles, Circles, and a generic Shape abstraction
- Keyboard and 3-button mouse support
- Viewport projection of the mouse to the world space automatically
- OpenGL hardware-accelerated graphics
- A variety of image formats
- Multi-play sound clips
- A looping music player
- Asynchronous asset loading
- Unified codebase across desktop and the web
- Collision support (via [ncollide2d](https://github.com/sebcrozet/ncollide)),
- TTF font support (via [rusttype](https://github.com/redox-os/rusttype)),
- Gamepad support (via [gilrs](https://gitlab.com/gilrs-project/gilrs)),
- Saving on web and desktop (via [serde_json](https://github.com/serde-rs/json)),

## Comparison with [ggez](https://github.com/ggez/ggez)

| Quicksilver | GGEZ |
Expand Down
28 changes: 28 additions & 0 deletions create-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh
set -e
cargo test
echo '--- Remove the old build artifacts ---'
for file in $(ls -I docs/index.html -I docs/example.html -I docs/prism.css -I docs/prism.js -I docs/style.js docs/)
do
rm docs/$file
done
for example in examples/*
do
example=$(basename $example .rs)
echo "---- Building example: $example ----"
cargo +nightly web build --target wasm32-unknown-unknown --release --example $example
echo "--- Copying build artifacts: $example ----"
cp target/wasm32-unknown-unknown/release/examples/$example.wasm docs/$example.wasm
cp target/wasm32-unknown-unknown/release/examples/$example.js docs/$example.js
done

echo "--- Copying assets to the web directory ---"
cp static/* docs/
read -p "New version string: " version

echo "--- Bumping version of the html_url_root ---"
sed -e "s/html_root_url = \".*\"/html_root_url = \"https:\/\/docs.rs\/quicksilver\/$version\/quicksilver\"/g" -i src/lib.rs

echo "--- Bumping version in Cargo.toml ---"
sed -e "s/^version = \".*\"/version=\"$version\"/g" -i Cargo.toml

File renamed without changes
File renamed without changes.
Loading

0 comments on commit 210b737

Please sign in to comment.