mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-08-04 18:48:09 +00:00
Upgrade packages to Rust 2021 (#412)
More modern edition of the compiler
This commit is contained in:
parent
86172de965
commit
88a9fd048c
14 changed files with 15 additions and 14 deletions
|
@ -11,6 +11,7 @@ members = [
|
|||
"crates/interval-tree",
|
||||
#"crates/spaceman-dmm",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 2
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "builtins-proc-macro"
|
||||
version = "0.0.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "dap-types"
|
||||
version = "0.0.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0.144"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "dm-langserver"
|
||||
version = "1.9.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
url = "2.3.1"
|
||||
|
|
|
@ -142,7 +142,7 @@ macro_rules! if_annotation {
|
|||
}
|
||||
|
||||
macro_rules! match_annotation {
|
||||
($a:expr; $($($p:pat)|* => $b:block,)*) => {
|
||||
($a:expr; $($($p:pat_param)|* => $b:block,)*) => {
|
||||
for (_, thing) in $a.clone() {
|
||||
match thing {
|
||||
$($($p)|* => $b,)*
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "dmdoc"
|
|||
version = "1.9.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
homepage = "https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
dreammaker = { path = "../dreammaker" }
|
||||
|
|
|
@ -3,7 +3,7 @@ name = "dmm-tools-cli"
|
|||
version = "1.9.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
description = "BYOND map rendering and analysis tools powered by SpacemanDMM"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "dmm-tools"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "dmm-tools"
|
||||
version = "0.1.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
inflate = "0.4.5"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "dreamchecker"
|
||||
version = "1.9.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
dreammaker = { path = "../dreammaker" }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "dreammaker"
|
||||
version = "0.1.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
interval-tree = { path = "../interval-tree" }
|
||||
|
|
|
@ -52,7 +52,7 @@ macro_rules! take_match {
|
|||
(
|
||||
$self:ident {
|
||||
$(
|
||||
$($p:pat)|* $( if $condition:expr )? => $branch:expr,
|
||||
$($p:pat_param)|* $( if $condition:expr )? => $branch:expr,
|
||||
)*
|
||||
}
|
||||
// else mandatory because you should never be matching on every option
|
||||
|
|
|
@ -26,8 +26,8 @@ fn floats() {
|
|||
assert_eq!(FormatFloat(0.000500001).to_string(), "0.000500001");
|
||||
assert_eq!(FormatFloat(0.0000500001).to_string(), "5.00001e-005");
|
||||
|
||||
assert_eq!(FormatFloat(std::f32::INFINITY).to_string(), "1.#INF");
|
||||
assert_eq!(FormatFloat(-std::f32::INFINITY).to_string(), "-1.#INF");
|
||||
assert_eq!(FormatFloat(f32::INFINITY).to_string(), "1.#INF");
|
||||
assert_eq!(FormatFloat(-f32::INFINITY).to_string(), "-1.#INF");
|
||||
|
||||
assert_eq!(FormatFloat(2.9).to_string(), "2.9");
|
||||
assert_eq!(FormatFloat(2.4).to_string(), "2.4");
|
||||
|
|
|
@ -6,7 +6,7 @@ description = "A simple Interval Tree implementation"
|
|||
repository = "https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/interval-tree"
|
||||
keywords = ["datastructure", "interval", "tree", "map"]
|
||||
license-file = "LICENSE"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dev-dependencies]
|
||||
rand = "0.8.5"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "spaceman-dmm"
|
||||
version = "0.1.0"
|
||||
authors = ["Tad Hardesty <tad@platymuus.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "editor"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue