Update to 2021 edition. (#820)

This commit is contained in:
Dario Nieuwenhuis 2022-06-18 02:15:48 +02:00 committed by GitHub
parent b585d54712
commit 88e36a70bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
43 changed files with 51 additions and 72 deletions

View File

@ -2,7 +2,7 @@
authors = [
"Ulf Lilleengen <lulf@redhat.com>",
]
edition = "2018"
edition = "2021"
name = "embassy-boot"
version = "0.1.0"
description = "Bootloader using Embassy"

View File

@ -2,7 +2,7 @@
authors = [
"Ulf Lilleengen <lulf@redhat.com>",
]
edition = "2018"
edition = "2021"
name = "embassy-boot-nrf"
version = "0.1.0"
description = "Bootloader for nRF chips"

View File

@ -2,8 +2,7 @@
name = "embassy-cortex-m"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
resolver = "2"
edition = "2021"
[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-cortex-m-v$VERSION/embassy-cortex-m/src/"

View File

@ -2,7 +2,7 @@
name = "embassy-embedded-hal"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
[features]
std = []

View File

@ -2,7 +2,7 @@
name = "embassy-hal-common"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
[features]

View File

@ -2,7 +2,7 @@
name = "embassy-lora"
version = "0.1.0"
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-lora-v$VERSION/embassy-lora/src/"

View File

@ -2,7 +2,7 @@
name = "embassy-macros"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
[dependencies]
syn = { version = "1.0.76", features = ["full", "extra-traits"] }

View File

@ -2,7 +2,7 @@
name = "embassy-net"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
[package.metadata.embassy_docs]

View File

@ -2,7 +2,7 @@
name = "embassy-nrf"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-nrf-v$VERSION/embassy-nrf/src/"

View File

@ -2,7 +2,7 @@
name = "embassy-rp"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-rp-v$VERSION/embassy-rp/src/"

View File

@ -2,8 +2,7 @@
name = "embassy-stm32"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
resolver = "2"
edition = "2021"
[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-stm32-v$VERSION/embassy-stm32/src/"
@ -63,7 +62,7 @@ vcell = "0.1.3"
bxcan = "0.6.2"
nb = "1.0.0"
stm32-fmc = "0.2.4"
seq-macro = "0.2.2"
seq-macro = "0.3.0"
cfg-if = "1.0.0"
embedded-io = { version = "0.3.0", features = ["async"], optional = true }

View File

@ -102,7 +102,7 @@ seq_macro::seq!(N in 8..=86 {
#[derive(Clone, Copy)]
pub enum PLLMul {
#(
Mul#N,
Mul~N,
)*
}
@ -110,7 +110,7 @@ seq_macro::seq!(N in 8..=86 {
fn from(val: PLLMul) -> u8 {
match val {
#(
PLLMul::Mul#N => N,
PLLMul::Mul~N => N,
)*
}
}
@ -120,7 +120,7 @@ seq_macro::seq!(N in 8..=86 {
pub fn to_mul(self) -> u32 {
match self {
#(
PLLMul::Mul#N => N,
PLLMul::Mul~N => N,
)*
}
}

View File

@ -104,7 +104,7 @@ seq_macro::seq!(N in 8..=86 {
#[derive(Clone, Copy)]
pub enum PLLMul {
#(
Mul#N,
Mul~N,
)*
}
@ -112,7 +112,7 @@ seq_macro::seq!(N in 8..=86 {
fn from(val: PLLMul) -> u8 {
match val {
#(
PLLMul::Mul#N => N,
PLLMul::Mul~N => N,
)*
}
}
@ -122,7 +122,7 @@ seq_macro::seq!(N in 8..=86 {
pub fn to_mul(self) -> u32 {
match self {
#(
PLLMul::Mul#N => N,
PLLMul::Mul~N => N,
)*
}
}

View File

@ -51,7 +51,7 @@ seq_macro::seq!(N in 2..=128 {
pub enum PllClkDiv {
NotDivided,
#(
Div#N = (N-1),
Div~N = (N-1),
)*
}
@ -60,7 +60,7 @@ seq_macro::seq!(N in 2..=128 {
match self {
PllClkDiv::NotDivided => 1,
#(
PllClkDiv::Div#N => (N + 1),
PllClkDiv::Div~N => (N + 1),
)*
}
}
@ -78,7 +78,7 @@ seq_macro::seq!(N in 4..=512 {
pub enum PllN {
NotMultiplied,
#(
Mul#N = (N-1),
Mul~N = (N-1),
)*
}
@ -87,7 +87,7 @@ seq_macro::seq!(N in 4..=512 {
match self {
PllN::NotMultiplied => 1,
#(
PllN::Mul#N => (N + 1),
PllN::Mul~N => (N + 1),
)*
}
}

View File

@ -2,8 +2,7 @@
name = "embassy"
version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
resolver = "2"
edition = "2021"
[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-v$VERSION/embassy/src/"

View File

@ -1,6 +1,6 @@
[package]
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
name = "embassy-boot-nrf-examples"
version = "0.1.0"

View File

@ -1,6 +1,6 @@
[package]
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
name = "embassy-boot-stm32l0-examples"
version = "0.1.0"

View File

@ -1,6 +1,6 @@
[package]
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
name = "embassy-boot-stm32l1-examples"
version = "0.1.0"

View File

@ -1,6 +1,6 @@
[package]
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
name = "embassy-boot-stm32l4-examples"
version = "0.1.0"

View File

@ -1,6 +1,6 @@
[package]
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
name = "embassy-boot-stm32wl-examples"
version = "0.1.0"

View File

@ -1,6 +1,6 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-std-examples"
version = "0.1.0"

View File

@ -2,8 +2,7 @@
name = "embassy-stm32f0-examples"
version = "0.1.0"
authors = ["Thales Fragoso <thales.fragosoz@gmail.com>"]
edition = "2018"
resolver = "2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32f1-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32f2-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32f3-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32f4-examples"
version = "0.1.0"
resolver = "2"
[dependencies]

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32f7-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>", "Ben Gamari <ben@smart-cactus.org>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32g0-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>", "Ben Gamari <ben@smart-cactus.org>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32g4-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32h7-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "unstable-traits", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>", "Ulf Lilleengen <ulf.lilleengen@gmail.com>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32l0-examples"
version = "0.1.0"
resolver = "2"
[features]
default = ["nightly"]

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>", "Ulf Lilleengen <ulf.lilleengen@gmail.com>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32l1-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32l4-examples"
version = "0.1.0"
resolver = "2"
[features]

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32l5-examples"
version = "0.1.0"
resolver = "2"
[features]

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32u5-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32wb-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>", "Ulf Lilleengen <ulf.lilleengen@gmail.com>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32wl-examples"
version = "0.1.0"
resolver = "2"
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] }

View File

@ -1,6 +1,6 @@
[package]
authors = ["Ulf Lilleengen <lulf@redhat.com>"]
edition = "2018"
edition = "2021"
name = "embassy-wasm-example"
version = "0.1.0"

View File

@ -2,7 +2,7 @@
name = "gen_features"
version = "0.1.0"
authors = ["Côme ALLART <come.allart@netc.fr>"]
edition = "2018"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,7 +1,7 @@
[package]
name = "stm32-metapac-gen"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]

View File

@ -1,8 +1,7 @@
[package]
name = "stm32-metapac"
version = "0.1.0"
edition = "2018"
resolver = "2"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/embassy-rs/embassy"
description = "Peripheral Access Crate (PAC) for all STM32 chips, including metadata."

View File

@ -1,9 +1,8 @@
[package]
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
edition = "2021"
name = "embassy-stm32-tests"
version = "0.1.0"
resolver = "2"
[features]
stm32f103c8 = ["embassy-stm32/stm32f103c8"] # Blue Pill

View File

@ -3,7 +3,7 @@ authors = [
"Ulf Lilleengen <lulf@redhat.com>",
"Bob McWhirter <bmcwhirt@redhat.com>"
]
edition = "2018"
edition = "2021"
name = "xtask"
version = "0.1.0"