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

Update deps and editions #690

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
1,265 changes: 312 additions & 953 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "zemeroth"
version = "0.7.0-snapshot"
authors = ["Andrey Lesnikov <[email protected]>"]
edition = "2018"
edition = "2021"
license = "MIT/Apache-2.0"
description = "A 2D turn-based hexagonal tactical game."

Expand All @@ -16,10 +16,10 @@ members = ["zcomponents", "zgui", "zscene"]
assets = "assets/"

[dependencies]
ron = "0.6"
ron = "0.8"
log = "0.4"
env_logger = "0.9"
derive_more = { version = "0.99", features = ["from"] }
env_logger = "0.10"
derive_more = { version = "0.99", features = ["from"] } # TODO: https://github.com/ozkriff/zemeroth/issues/251
serde = { version = "1.0", features = ["derive"] }
num = { version = "0.4", default-features = false }
ui = { path = "zgui", package = "zgui" }
Expand All @@ -28,8 +28,8 @@ zcomponents = { path = "zcomponents" }
rand = { version = "0.8", default-features = false, features = ["alloc"] }
quad-rand = { version = "0.2", features = ["rand"] }
mq = { package = "macroquad", version = "0.3" }
heck = "0.3"
heck = "0.4.1"
once_cell = "1.6"

[dev-dependencies]
pretty_assertions = "0.7"
pretty_assertions = "1.3"
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub enum ZError {
Ui(ui::Error),
Scene(zscene::Error),
RonDeserialize {
error: ron::de::Error,
error: ron::de::SpannedError,
path: PathBuf,
},
IO(io::Error),
Expand All @@ -14,7 +14,7 @@ pub enum ZError {
}

impl ZError {
pub fn from_ron_de_error(error: ron::de::Error, path: PathBuf) -> Self {
pub fn from_ron_de_error(error: ron::de::SpannedError, path: PathBuf) -> Self {
ZError::RonDeserialize { error, path }
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/screen/agent_info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::time::Duration;

use heck::TitleCase;
use heck::ToTitleCase;
use mq::{color::Color, math::Vec2};
use ui::{self, Drawable, Gui, Widget};

Expand Down
2 changes: 1 addition & 1 deletion src/screen/battle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
time::Duration,
};

use heck::TitleCase;
use heck::ToTitleCase;
use log::{info, trace};
use mq::{color::Color, math::Vec2};

Expand Down
2 changes: 1 addition & 1 deletion src/screen/campaign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
time::Duration,
};

use heck::TitleCase;
use heck::ToTitleCase;
use log::info;
use mq::{math::Vec2, text::Font};
use ui::{self, Drawable, Gui, Widget};
Expand Down
2 changes: 1 addition & 1 deletion zcomponents/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "zcomponents"
version = "0.2.0"
authors = ["Andrey Lesnikov <[email protected]>"]
edition = "2018"
edition = "2021"
license = "MIT/Apache-2.0"
description = "ZComponents is a stupid component storage"
repository = "https://github.com/ozkriff/zemeroth"
Expand Down
2 changes: 1 addition & 1 deletion zgui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "zgui"
version = "0.1.0"
authors = ["Andrey Lesnikov <[email protected]>"]
edition = "2018"
edition = "2021"
license = "MIT/Apache-2.0"
description = "Tiny and opionated GUI library"
keywords = ["gamedev", "gui"]
Expand Down
1 change: 1 addition & 0 deletions zgui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl Sprite {
font,
font_scale,
font_scale_aspect,
rotation: 0.0,
color: self.color,
},
);
Expand Down
2 changes: 1 addition & 1 deletion zscene/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "zscene"
version = "0.1.0"
authors = ["Andrey Lesnikov <[email protected]>"]
edition = "2018"
edition = "2021"
license = "MIT/Apache-2.0"
description = "Scene and Actions for gwg"
keywords = ["gamedev", "2D"]
Expand Down