From 62e59ffda2aa97815596b8e299d023eabd9ef8ad Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 6 May 2025 17:55:00 -0400 Subject: [PATCH] consolidate workspace settings * Ensure all crates are consistently configured and validated using workspace features * move edition, license, repo, and rust-version (where used) to workspace * remove readme setting (already set by default) * add lints section - this should be used in a separate PR --- Cargo.toml | 14 ++++++++++++++ atsamd-hal-macros/Cargo.toml | 11 +++++++---- boards/arduino_mkr1000/Cargo.toml | 10 ++++++---- boards/arduino_mkrvidor4000/Cargo.toml | 10 ++++++---- boards/arduino_mkrzero/Cargo.toml | 10 ++++++---- boards/arduino_nano33iot/Cargo.toml | 10 ++++++---- boards/atsame54_xpro/Cargo.toml | 10 ++++++---- boards/circuit_playground_express/Cargo.toml | 8 +++++--- boards/edgebadge/Cargo.toml | 10 ++++++---- boards/feather_m0/Cargo.toml | 11 ++++++----- boards/feather_m4/Cargo.toml | 10 ++++++---- boards/gemma_m0/Cargo.toml | 10 ++++++---- boards/grand_central_m4/Cargo.toml | 10 ++++++---- boards/itsybitsy_m0/Cargo.toml | 10 ++++++---- boards/itsybitsy_m4/Cargo.toml | 10 ++++++---- boards/matrix_portal_m4/Cargo.toml | 10 ++++++---- boards/metro_m0/Cargo.toml | 10 ++++++---- boards/metro_m4/Cargo.toml | 10 ++++++---- boards/neo_trinkey/Cargo.toml | 10 ++++++---- boards/neokey_trinkey/Cargo.toml | 10 ++++++---- boards/p1am_100/Cargo.toml | 10 ++++++---- boards/pfza_proto1/Cargo.toml | 10 ++++++---- boards/pygamer/Cargo.toml | 10 ++++++---- boards/pyportal/Cargo.toml | 10 ++++++---- boards/qt_py_m0/Cargo.toml | 8 +++++--- boards/samd11_bare/Cargo.toml | 10 ++++++---- boards/samd21_mini/Cargo.toml | 10 ++++++---- boards/serpente/Cargo.toml | 10 ++++++---- boards/sodaq_one/Cargo.toml | 10 ++++++---- boards/sodaq_sara_aff/Cargo.toml | 10 ++++++---- boards/trellis_m4/Cargo.toml | 10 ++++++---- boards/trinket_m0/Cargo.toml | 10 ++++++---- boards/wio_lite_mg126/Cargo.toml | 10 ++++++---- boards/wio_lite_w600/Cargo.toml | 10 ++++++---- boards/wio_terminal/Cargo.toml | 11 ++++++----- boards/xiao_m0/Cargo.toml | 10 ++++++---- hal/Cargo.toml | 12 +++++++----- pac/atsamd11c/Cargo.toml | 10 ++++++---- pac/atsamd11d/Cargo.toml | 10 ++++++---- pac/atsamd21e/Cargo.toml | 10 ++++++---- pac/atsamd21g/Cargo.toml | 10 ++++++---- pac/atsamd21j/Cargo.toml | 10 ++++++---- pac/atsamd51g/Cargo.toml | 10 ++++++---- pac/atsamd51j/Cargo.toml | 10 ++++++---- pac/atsamd51n/Cargo.toml | 10 ++++++---- pac/atsamd51p/Cargo.toml | 10 ++++++---- pac/atsame51g/Cargo.toml | 10 ++++++---- pac/atsame51j/Cargo.toml | 10 ++++++---- pac/atsame51n/Cargo.toml | 10 ++++++---- pac/atsame53j/Cargo.toml | 10 ++++++---- pac/atsame53n/Cargo.toml | 10 ++++++---- pac/atsame54n/Cargo.toml | 10 ++++++---- pac/atsame54p/Cargo.toml | 10 ++++++---- 53 files changed, 326 insertions(+), 209 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6613515bbc01..8a345fdb48b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,20 @@ members = [ "boards/*", ] +[workspace.package] +edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/atsamd-rs/atsamd" +rust-version = "1.77.2" + +[workspace.lints.rust] +# TODO: add any workspace-wide rust lint configurations +# TODO: enable to make identifier usage consistent per file +# unused_qualifications = "warn" + +[workspace.lints.clippy] +# TODO: add any workspace-wide clippy lint configurations + [profile.dev] debug = true opt-level = 0 diff --git a/atsamd-hal-macros/Cargo.toml b/atsamd-hal-macros/Cargo.toml index 086551b82965..628882643356 100644 --- a/atsamd-hal-macros/Cargo.toml +++ b/atsamd-hal-macros/Cargo.toml @@ -1,14 +1,17 @@ [package] authors = ["Tethys Svensson"] name = "atsamd-hal-macros" -rust-version = "1.77.2" version = "0.2.4" -edition = "2021" -license = "MIT OR Apache-2.0" categories = ["embedded", "hardware-support", "no-std"] description = "Procedural macros for the atsamd-hal library" documentation = "https://docs.rs/crate/atsamd-hal-macros/" -repository = "https://github.com/atsamd-rs/atsamd" +edition.workspace = true +license.workspace = true +repository.workspace = true +rust-version.workspace = true + +[lints] +workspace = true [lib] proc-macro = true diff --git a/boards/arduino_mkr1000/Cargo.toml b/boards/arduino_mkr1000/Cargo.toml index eabc3333b33c..6ffd58fdd3bf 100644 --- a/boards/arduino_mkr1000/Cargo.toml +++ b/boards/arduino_mkr1000/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Eric Rushing "] description = "Board Support crate for the Arduino MKR 1000 WiFi" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/arduino_mkrvidor4000/Cargo.toml b/boards/arduino_mkrvidor4000/Cargo.toml index b0f8755fcde7..f8da1935d5bb 100644 --- a/boards/arduino_mkrvidor4000/Cargo.toml +++ b/boards/arduino_mkrvidor4000/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Sameer Puri "] description = "Board Support crate for the Arduino MKR VIDOR 4000" keywords = ["no-std", "arm", "cortex-m", "embedded-hal", "arduino"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/arduino_mkrzero/Cargo.toml b/boards/arduino_mkrzero/Cargo.toml index bb230e821304..41c1ef8239aa 100644 --- a/boards/arduino_mkrzero/Cargo.toml +++ b/boards/arduino_mkrzero/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Wez Furlong ", "David McGillicuddy "] description = "Board Support crate for the Arduino Nano 33 IOT" keywords = ["no-std", "arm", "cortex-m", "embedded-hal", "arduino"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/atsame54_xpro/Cargo.toml b/boards/atsame54_xpro/Cargo.toml index 504ecd237244..368eca00c9d4 100644 --- a/boards/atsame54_xpro/Cargo.toml +++ b/boards/atsame54_xpro/Cargo.toml @@ -5,13 +5,15 @@ authors = [ ] categories = ["embedded", "hardware-support", "no-std"] description = "Board Support crate for the SAM E54 Xplained Pro Evaluation Kit" -edition = "2021" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "atsame54_xpro" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" version = "0.11.3" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] optional = true diff --git a/boards/circuit_playground_express/Cargo.toml b/boards/circuit_playground_express/Cargo.toml index 1245b52a5c45..6f28cbe1bce5 100644 --- a/boards/circuit_playground_express/Cargo.toml +++ b/boards/circuit_playground_express/Cargo.toml @@ -4,10 +4,12 @@ version = "0.11.1" authors = ["Paul Sajna "] description = "Board Support crate for the Adafruit Circuit Playground Express" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" edition = "2018" +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/edgebadge/Cargo.toml b/boards/edgebadge/Cargo.toml index 86dc4efd7c7e..4825cacaa046 100644 --- a/boards/edgebadge/Cargo.toml +++ b/boards/edgebadge/Cargo.toml @@ -5,11 +5,13 @@ authors = ["Jacob Rosenthal <@jacobrosenthal>"] description = "Board Support crate for the Adafruit EdgeBadge" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" exclude = ["assets"] +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/boards/feather_m0/Cargo.toml b/boards/feather_m0/Cargo.toml index 911ec7687707..d094273979da 100644 --- a/boards/feather_m0/Cargo.toml +++ b/boards/feather_m0/Cargo.toml @@ -2,14 +2,15 @@ authors = ["Ben Bergman "] categories = ["embedded", "hardware-support", "no-std"] description = "Board Support crate for the Adafruit Feather M0" -edition = "2021" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "feather_m0" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" -resolver = "2" version = "0.18.3" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/feather_m4/Cargo.toml b/boards/feather_m4/Cargo.toml index 8f0ee756b4c1..1470e032d180 100644 --- a/boards/feather_m4/Cargo.toml +++ b/boards/feather_m4/Cargo.toml @@ -3,13 +3,15 @@ authors = ["Theodore DeRego "] categories = ["embedded", "hardware-support", "no-std"] description = "Board Support crate for the Adafruit Feather M4" documentation = "https://atsamd-rs.github.io/atsamd/atsamd51j/feather_m4/" -edition = "2021" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "feather_m4" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" version = "0.16.3" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/gemma_m0/Cargo.toml b/boards/gemma_m0/Cargo.toml index 8b26730c8ac2..40b30e412dba 100644 --- a/boards/gemma_m0/Cargo.toml +++ b/boards/gemma_m0/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Wez Furlong "] description = "Board Support crate for the Adafruit Gemma M0" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/grand_central_m4/Cargo.toml b/boards/grand_central_m4/Cargo.toml index f432f9fd6f16..eb46e05ce6ad 100644 --- a/boards/grand_central_m4/Cargo.toml +++ b/boards/grand_central_m4/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Dustin Little "] description = "Board Support crate for the Adafruit Grand Central M4 Express" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/itsybitsy_m0/Cargo.toml b/boards/itsybitsy_m0/Cargo.toml index aae969457682..ebdac27fec2a 100644 --- a/boards/itsybitsy_m0/Cargo.toml +++ b/boards/itsybitsy_m0/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Ben Bergman "] description = "Board Support crate for the Adafruit ItsyBitsy M0" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] bitbang-hal = "0.3" diff --git a/boards/itsybitsy_m4/Cargo.toml b/boards/itsybitsy_m4/Cargo.toml index 40d1dfe58311..b891eec844a3 100644 --- a/boards/itsybitsy_m4/Cargo.toml +++ b/boards/itsybitsy_m4/Cargo.toml @@ -8,10 +8,12 @@ authors = [ description = "Board Support crate for the Adafruit ItsyBitsy M4 Express" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] bitbang-hal = "0.3" diff --git a/boards/matrix_portal_m4/Cargo.toml b/boards/matrix_portal_m4/Cargo.toml index 71ed7b8106bf..005853cb2efc 100644 --- a/boards/matrix_portal_m4/Cargo.toml +++ b/boards/matrix_portal_m4/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Salsa Steve "] description = "Board Support crate for the Matrix Portal M4" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/metro_m0/Cargo.toml b/boards/metro_m0/Cargo.toml index 71ae9bcb65aa..b077b10b25eb 100644 --- a/boards/metro_m0/Cargo.toml +++ b/boards/metro_m0/Cargo.toml @@ -2,13 +2,15 @@ authors = ["Wez Furlong "] categories = ["embedded", "hardware-support", "no-std"] description = "Board Support crate for the Adafruit Metro M0" -edition = "2021" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "metro_m0" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" version = "0.18.3" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/metro_m4/Cargo.toml b/boards/metro_m4/Cargo.toml index 6b9642015b26..e7960c120a6c 100644 --- a/boards/metro_m4/Cargo.toml +++ b/boards/metro_m4/Cargo.toml @@ -2,13 +2,15 @@ authors = ["Paul Sajna ", "Wez Furlong "] categories = ["embedded", "hardware-support", "no-std"] description = "Board Support crate for the Adafruit Metro M4" -edition = "2021" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "metro_m4" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" version = "0.17.3" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/neo_trinkey/Cargo.toml b/boards/neo_trinkey/Cargo.toml index c9ddfbcae955..7b981956d77e 100644 --- a/boards/neo_trinkey/Cargo.toml +++ b/boards/neo_trinkey/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Daniel Mason "] description = "Board Support crate for the Adafruit Neo Trinkey" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m-rt = { version = "0.7", optional = true } diff --git a/boards/neokey_trinkey/Cargo.toml b/boards/neokey_trinkey/Cargo.toml index d356fad4ed64..4f2a432f1f7b 100644 --- a/boards/neokey_trinkey/Cargo.toml +++ b/boards/neokey_trinkey/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Broderick Carlin "] description = "Board Support crate for the Adafruit Neokey Trinkey" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.panic-semihosting] version = "0.6" diff --git a/boards/p1am_100/Cargo.toml b/boards/p1am_100/Cargo.toml index 77a106187e05..56b9d9a985a3 100644 --- a/boards/p1am_100/Cargo.toml +++ b/boards/p1am_100/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Quentin Smith "] description = "Board Support crate for the Facts Engineering P1AM-100" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/pfza_proto1/Cargo.toml b/boards/pfza_proto1/Cargo.toml index 58fd3e28727f..2ee8b432328a 100644 --- a/boards/pfza_proto1/Cargo.toml +++ b/boards/pfza_proto1/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Michael van Niekerk "] description = "Board Support crate for the PathfinderZA Proto1" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/pygamer/Cargo.toml b/boards/pygamer/Cargo.toml index 9705e84fbb01..22ade4fdad2a 100644 --- a/boards/pygamer/Cargo.toml +++ b/boards/pygamer/Cargo.toml @@ -5,14 +5,16 @@ authors = [ ] categories = ["embedded", "hardware-support", "no-std"] description = "Board Support crate for the Adafruit PyGamer" -edition = "2021" exclude = ["assets"] keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "pygamer" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" version = "0.14.3" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = {version = "0.7", features = ["critical-section-single-core"]} diff --git a/boards/pyportal/Cargo.toml b/boards/pyportal/Cargo.toml index f32f7611f0fc..29d56c4be4e0 100644 --- a/boards/pyportal/Cargo.toml +++ b/boards/pyportal/Cargo.toml @@ -9,10 +9,12 @@ authors = [ description = "Board Support crate for the Adafruit PyPortal" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7.5" diff --git a/boards/qt_py_m0/Cargo.toml b/boards/qt_py_m0/Cargo.toml index 2cb79b0d86b3..c0ef7577b612 100644 --- a/boards/qt_py_m0/Cargo.toml +++ b/boards/qt_py_m0/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Garret Kelly "] description = "Board Support crate for the Adafruit QT Py" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" edition = "2018" +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m-rt = { version = "0.7", optional = true } diff --git a/boards/samd11_bare/Cargo.toml b/boards/samd11_bare/Cargo.toml index 7872697fac85..1d240464d7e7 100644 --- a/boards/samd11_bare/Cargo.toml +++ b/boards/samd11_bare/Cargo.toml @@ -1,13 +1,15 @@ [package] authors = ["Jesse Braham "] description = "Support crate for the ATSAMD11C" -edition = "2018" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] -license = "MIT OR Apache-2.0" name = "samd11_bare" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" version = "0.14.3" +edition = "2018" +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/samd21_mini/Cargo.toml b/boards/samd21_mini/Cargo.toml index 81ff0f16c560..f4248a62fd17 100644 --- a/boards/samd21_mini/Cargo.toml +++ b/boards/samd21_mini/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Ze'ev Klapow "] description = "Board Support crate for the Sparkfun SAMD21 Mini Breakout" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/serpente/Cargo.toml b/boards/serpente/Cargo.toml index 3332d463285f..5c12e4fe3eb2 100644 --- a/boards/serpente/Cargo.toml +++ b/boards/serpente/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Jens Andersen "] description = "Board Support crate for the Serpente board" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.panic-semihosting] version = "0.6" diff --git a/boards/sodaq_one/Cargo.toml b/boards/sodaq_one/Cargo.toml index 21f55e4ee69d..a6b89f22db10 100644 --- a/boards/sodaq_one/Cargo.toml +++ b/boards/sodaq_one/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Robert Hennig "] description = "Board Support crate for the SODAQ ONE" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.cortex-m-rt] version = "0.7" diff --git a/boards/sodaq_sara_aff/Cargo.toml b/boards/sodaq_sara_aff/Cargo.toml index 62a04c4359c1..e55b504b9928 100644 --- a/boards/sodaq_sara_aff/Cargo.toml +++ b/boards/sodaq_sara_aff/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Stefan de Lange "] description = "Board Support crate for the Sodaq SARA AFF" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies.panic-semihosting] version = "0.6" diff --git a/boards/trellis_m4/Cargo.toml b/boards/trellis_m4/Cargo.toml index 6b9bdfede681..0a7d68c08e54 100644 --- a/boards/trellis_m4/Cargo.toml +++ b/boards/trellis_m4/Cargo.toml @@ -9,10 +9,12 @@ authors = [ description = "Board Support crate for the Adafruit NeoTrellis M4 Express" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [package.metadata.docs.rs] features = ["adxl343", "keypad-unproven"] diff --git a/boards/trinket_m0/Cargo.toml b/boards/trinket_m0/Cargo.toml index 3596a2598920..c4b0e9614060 100644 --- a/boards/trinket_m0/Cargo.toml +++ b/boards/trinket_m0/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Ben Bergman "] description = "Board Support crate for the Adafruit Trinket M0" keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] categories = ["embedded", "hardware-support", "no-std"] -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] bitbang-hal = "0.3" diff --git a/boards/wio_lite_mg126/Cargo.toml b/boards/wio_lite_mg126/Cargo.toml index c80fa49883d7..e62772601100 100644 --- a/boards/wio_lite_mg126/Cargo.toml +++ b/boards/wio_lite_mg126/Cargo.toml @@ -5,11 +5,13 @@ authors = ["Max Khardin ", "Tom " ] -edition = "2021" description = "Board support crate for the Seeed Studio Wio Terminal" documentation = "https://docs.rs/wio-terminal/" -readme = "README.md" -repository = "https://github.com/atsamd-rs/atsamd" -license = "MIT OR Apache-2.0" keywords = [ "arm", "cortex-m", @@ -22,8 +18,13 @@ categories = [ "hardware-support", "no-std", ] - exclude = ["assets"] +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true # for cargo flash [package.metadata] diff --git a/boards/xiao_m0/Cargo.toml b/boards/xiao_m0/Cargo.toml index 886e2ba3bed7..4c8347e8047f 100644 --- a/boards/xiao_m0/Cargo.toml +++ b/boards/xiao_m0/Cargo.toml @@ -5,10 +5,12 @@ authors = ["Garret Kelly ", "Maciej Procyk "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd11d/Cargo.toml b/pac/atsamd11d/Cargo.toml index a3766126616c..61e2df6f573e 100644 --- a/pac/atsamd11d/Cargo.toml +++ b/pac/atsamd11d/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Victor Koenders "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd21e/Cargo.toml b/pac/atsamd21e/Cargo.toml index 1056ddf0d8d9..2b71ae5314b0 100644 --- a/pac/atsamd21e/Cargo.toml +++ b/pac/atsamd21e/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Wez Furlong "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd21g/Cargo.toml b/pac/atsamd21g/Cargo.toml index fc91e4a4995b..84c9c78de16a 100644 --- a/pac/atsamd21g/Cargo.toml +++ b/pac/atsamd21g/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Wez Furlong ", "Blake Johnson "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd21j/Cargo.toml b/pac/atsamd21j/Cargo.toml index 0cc2e63112d5..9b6364d460d3 100644 --- a/pac/atsamd21j/Cargo.toml +++ b/pac/atsamd21j/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Wez Furlong ", "Paul Sajna "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd51g/Cargo.toml b/pac/atsamd51g/Cargo.toml index feb4ed7b29e1..0da139f09508 100644 --- a/pac/atsamd51g/Cargo.toml +++ b/pac/atsamd51g/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Wez Furlong ", "Tony Arcieri "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd51j/Cargo.toml b/pac/atsamd51j/Cargo.toml index 3d7d9d278fb6..f899b9fcc81a 100644 --- a/pac/atsamd51j/Cargo.toml +++ b/pac/atsamd51j/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Wez Furlong ", "Paul Sajna "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd51n/Cargo.toml b/pac/atsamd51n/Cargo.toml index 81ca8972c21b..7ff68fe63e47 100644 --- a/pac/atsamd51n/Cargo.toml +++ b/pac/atsamd51n/Cargo.toml @@ -9,10 +9,12 @@ authors = [ ] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsamd51p/Cargo.toml b/pac/atsamd51p/Cargo.toml index dc3861c1fc20..b1da53a0e6c3 100644 --- a/pac/atsamd51p/Cargo.toml +++ b/pac/atsamd51p/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Jesse Braham "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame51g/Cargo.toml b/pac/atsame51g/Cargo.toml index 8c4140ae5ad6..978f182d3486 100644 --- a/pac/atsame51g/Cargo.toml +++ b/pac/atsame51g/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Karsten Große "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame51j/Cargo.toml b/pac/atsame51j/Cargo.toml index 42dfda1cdd85..992877a4d9c3 100644 --- a/pac/atsame51j/Cargo.toml +++ b/pac/atsame51j/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Karsten Große "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame51n/Cargo.toml b/pac/atsame51n/Cargo.toml index db64e1f03f49..fdef13038214 100644 --- a/pac/atsame51n/Cargo.toml +++ b/pac/atsame51n/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Karsten Große "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame53j/Cargo.toml b/pac/atsame53j/Cargo.toml index f7464098f804..9cb593f9d911 100644 --- a/pac/atsame53j/Cargo.toml +++ b/pac/atsame53j/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Karsten Große "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame53n/Cargo.toml b/pac/atsame53n/Cargo.toml index 162c235a2857..6e332f25c03a 100644 --- a/pac/atsame53n/Cargo.toml +++ b/pac/atsame53n/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Karsten Große "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame54n/Cargo.toml b/pac/atsame54n/Cargo.toml index 6a4abdd79e1a..0e99a671a1a4 100644 --- a/pac/atsame54n/Cargo.toml +++ b/pac/atsame54n/Cargo.toml @@ -5,10 +5,12 @@ version = "0.14.1" authors = ["Karsten Große "] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7" diff --git a/pac/atsame54p/Cargo.toml b/pac/atsame54p/Cargo.toml index 6a29b04239ca..5f40c1e1c5e4 100644 --- a/pac/atsame54p/Cargo.toml +++ b/pac/atsame54p/Cargo.toml @@ -10,10 +10,12 @@ authors = [ ] keywords = ["no-std", "arm", "cortex-m"] categories = ["embedded", "hardware-support", "no-std"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/atsamd-rs/atsamd" -readme = "README.md" -edition = "2021" +edition.workspace = true +license.workspace = true +repository.workspace = true + +[lints] +workspace = true [dependencies] cortex-m = "0.7"