From f39fa7b354dc193c74d8199fc0b470cfbea9e7bd Mon Sep 17 00:00:00 2001 From: doryan Date: Tue, 22 Apr 2025 22:41:37 +0400 Subject: [PATCH] feat(cargo): update cargo files --- Cargo.lock | 86 ++++++++++++++++++++++----------------------- Cargo.toml | 32 +++++++++-------- rust-toolchain.toml | 2 +- 3 files changed, 61 insertions(+), 59 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ec2da8..9c85b49 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "arduino-hal" @@ -74,9 +74,9 @@ checksum = "f8fe8f5a8a398345e52358e18ff07cc17a568fbca5c6f73873d3a62056309603" [[package]] name = "bytemuck" -version = "1.21.0" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" +checksum = "b6b1fc10dbac614ebc03540c9dbd60e83887fda27794998c6528f1782047d540" [[package]] name = "cfg-if" @@ -143,36 +143,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d5439c4ad607c3c23abf66de8c8bf57ba8adcd1f129e699851a6e43935d339d" -[[package]] -name = "neopixel_avr" -version = "0.1.0" -dependencies = [ - "arduino-hal", - "avr-device", - "embedded-hal 1.0.0", - "nb 1.1.0", - "neopixel_macros", - "panic-halt", - "proc-macro2", - "smart-leds", - "smart-leds-trait", - "ufmt", -] - -[[package]] -name = "neopixel_macros" -version = "0.1.0" -dependencies = [ - "proc-macro2", - "syn 2.0.58", -] - -[[package]] -name = "panic-halt" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de96540e0ebde571dc55c73d60ef407c653844e6f9a1e2fdbd40c07b9252d812" - [[package]] name = "paste" version = "1.0.15" @@ -181,18 +151,18 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "proc-macro2" -version = "1.0.79" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.36" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] @@ -208,9 +178,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" +checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" [[package]] name = "smart-leds" @@ -230,6 +200,36 @@ dependencies = [ "rgb", ] +[[package]] +name = "soft-serial" +version = "0.1.0" +dependencies = [ + "arduino-hal", + "avr-device", + "smart-leds", + "static_pins", +] + +[[package]] +name = "static_pins" +version = "0.1.0" +source = "git+https://gitea.doryan04.ru/TheEmbeddedRust/static_pins#e3e619c7abfe9af0c966f970c0aef8b7fb89fb59" +dependencies = [ + "arduino-hal", + "static_pins_macros", +] + +[[package]] +name = "static_pins_macros" +version = "0.1.0" +source = "git+https://gitea.doryan04.ru/TheEmbeddedRust/static_pins#e3e619c7abfe9af0c966f970c0aef8b7fb89fb59" +dependencies = [ + "arduino-hal", + "proc-macro2", + "quote", + "syn 2.0.100", +] + [[package]] name = "syn" version = "1.0.109" @@ -243,9 +243,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.58" +version = "2.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" +checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0" dependencies = [ "proc-macro2", "quote", @@ -281,9 +281,9 @@ checksum = "e87a2ed6b42ec5e28cc3b94c09982969e9227600b2e3dcbc1db927a84c06bd69" [[package]] name = "unicode-ident" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" +checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" [[package]] name = "unwrap-infallible" diff --git a/Cargo.toml b/Cargo.toml index 485688c..203d29c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,28 +1,30 @@ [package] -name = "neopixel_avr" +name = "soft-serial" version = "0.1.0" edition = "2021" [dependencies] -panic-halt = "0.2.0" -ufmt = "0.2.0" -nb = "1.1.0" -embedded-hal = "1.0" -smart-leds-trait = "0.3.1" smart-leds = "0.4.0" -[dependencies.neopixel_macros] -path = "neopixel_macros" - -[dependencies.avr-device] -version = "0.5.4" -features = ["atmega32u4"] - [dependencies.arduino-hal] git = "https://github.com/rahix/avr-hal" rev = "3e362624547462928a219c40f9ea8e3a64f21e5f" features = ["sparkfun-promicro"] -[build-dependencies.proc-macro2] -version = "=1.0.79" +[dependencies.static_pins] +git = "https://gitea.doryan04.ru/TheEmbeddedRust/static_pins" +[dependencies.avr-device] +version = "0.5.4" + +[profile.dev] +panic = "abort" +codegen-units = 1 +debug = true +lto = true +opt-level = "s" + +[profile.release] +panic = "abort" +lto = true +opt-level = "s" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7426853..7e59f6a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] channel = "nightly-2024-06-13" components = [ "rust-src" ] -profile = "complete" +profile = "default"