Skip to content

Commit

Permalink
Update deps and switch to 2021 edition (#715)
Browse files Browse the repository at this point in the history
* Update deps and swith to 2021 edition

* fix up panic macro usage

Co-authored-by: Laurent Wandrebeck <laurent.wandrebeck@ovhcloud.com>
  • Loading branch information
lwandrebeck and Laurent Wandrebeck committed Oct 5, 2022
1 parent 9f7e4f7 commit 7305cf9
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bootstrap/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest_bootstrap"
description = "pest bootstrap script"
version = "0.0.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest_derive"
description = "pest's derive macro"
version = "2.4.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand Down
2 changes: 1 addition & 1 deletion generator/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest_generator"
description = "pest code generator"
version = "2.4.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand Down
2 changes: 1 addition & 1 deletion grammars/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest_grammars"
description = "pest popular grammar implementations"
version = "2.4.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand Down
2 changes: 1 addition & 1 deletion meta/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest_meta"
description = "pest meta language parser and validator"
version = "2.4.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand Down
3 changes: 2 additions & 1 deletion meta/src/lib.rs
Expand Up @@ -28,7 +28,8 @@ where
{
result.unwrap_or_else(|e| {
panic!(
"grammar error\n\n{}",
"{}{}",
"grammar error\n\n".to_owned(),
&e.into_iter()
.map(|error| format!("{}", error))
.collect::<Vec<_>>()
Expand Down
10 changes: 5 additions & 5 deletions pest/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest"
description = "The Elegant Parser"
version = "2.4.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand All @@ -26,9 +26,9 @@ const_prec_climber = []
fast-line-col = ["memchr", "bytecount"]

[dependencies]
ucd-trie = { version = "0.1.1", default-features = false }
serde = { version = "1.0.89", optional = true }
serde_json = { version = "1.0.39", optional = true}
thiserror = { version = "1.0.31", optional = true }
ucd-trie = { version = "0.1.5", default-features = false }
serde = { version = "1.0.145", optional = true }
serde_json = { version = "1.0.85", optional = true}
thiserror = { version = "1.0.37", optional = true }
memchr = { version = "2", optional = true }
bytecount = { version = "0.6", optional = true }
2 changes: 1 addition & 1 deletion vm/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "pest_vm"
description = "pest grammar virtual machine"
version = "2.4.0"
edition = "2018"
edition = "2021"
authors = ["Dragoș Tiselice <dragostiselice@gmail.com>"]
homepage = "https://pest-parser.github.io/"
repository = "https://github.com/pest-parser/pest"
Expand Down

0 comments on commit 7305cf9

Please sign in to comment.