├── rust-toolchain.toml ├── .vscode └── settings.json ├── .gitignore ├── .cargo └── config.toml ├── Cargo.toml ├── LICENSE-MIT ├── src └── main.rs ├── LICENSE-APACHE └── Cargo.lock /rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "esp" 3 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "rust-analyzer.checkOnSave.allTargets": false, 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | debug/ 4 | target/ 5 | 6 | # These are backup files generated by rustfmt 7 | **/*.rs.bk 8 | 9 | # MSVC Windows builds of rustc generate these, which store debugging information 10 | *.pdb 11 | -------------------------------------------------------------------------------- /.cargo/config.toml: -------------------------------------------------------------------------------- 1 | [target.xtensa-esp32-none-elf] 2 | runner = "espflash --monitor" 3 | 4 | [build] 5 | rustflags = [ 6 | "-C", "link-arg=-nostartfiles", 7 | "-C", "link-arg=-Wl,-Tlinkall.x", 8 | ] 9 | target = "xtensa-esp32-none-elf" 10 | 11 | [unstable] 12 | build-std = ["core"] 13 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "esp32_still_working" 3 | version = "0.1.0" 4 | authors = ["bjoernQ "] 5 | edition = "2021" 6 | license = "MIT OR Apache-2.0" 7 | 8 | [dependencies] 9 | esp32-hal = { package = "esp32-hal", git = "https://github.com/esp-rs/esp-hal.git" } 10 | esp-backtrace = { version = "0.2.0", features = ["esp32", "panic-handler", "print-uart"] } 11 | esp-println = { version = "0.2.2", features = ["uart"]} 12 | 13 | xtensa-lx-rt = { version = "0.13.0", features = ["esp32"], optional = true } 14 | 15 | [features] 16 | default = ["rt"] 17 | rt = ["xtensa-lx-rt"] 18 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright [year] [fullname] 2 | 3 | Permission is hereby granted, free of charge, to any 4 | person obtaining a copy of this software and associated 5 | documentation files (the "Software"), to deal in the 6 | Software without restriction, including without 7 | limitation the rights to use, copy, modify, merge, 8 | publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software 10 | is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice 14 | shall be included in all copies or substantial portions 15 | of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 18 | ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 19 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 20 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 21 | SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 22 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 24 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 | DEALINGS IN THE SOFTWARE. 26 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | #![no_std] 2 | #![no_main] 3 | 4 | use esp32_hal::{clock::ClockControl, pac::Peripherals, prelude::*, timer::TimerGroup, RtcCntl}; 5 | use esp_backtrace as _; 6 | use esp_println::println; 7 | use xtensa_lx_rt::entry; 8 | 9 | #[entry] 10 | fn main() -> ! { 11 | let peripherals = Peripherals::take().unwrap(); 12 | let system = peripherals.DPORT.split(); 13 | let clocks = ClockControl::boot_defaults(system.clock_control).freeze(); 14 | 15 | // Disable the RTC and TIMG watchdog timers 16 | let mut rtc_cntl = RtcCntl::new(peripherals.RTC_CNTL); 17 | let timer_group0 = TimerGroup::new(peripherals.TIMG0, &clocks); 18 | let mut wdt0 = timer_group0.wdt; 19 | let timer_group1 = TimerGroup::new(peripherals.TIMG1, &clocks); 20 | let mut wdt1 = timer_group1.wdt; 21 | 22 | rtc_cntl.set_wdt_global_enable(false); 23 | wdt0.disable(); 24 | wdt1.disable(); 25 | 26 | println!("Howdy!"); 27 | 28 | let mut bmp180 = Bmp180::new(); 29 | bmp180.measure(); 30 | println!("Current temperature {}", bmp180.get_temperature()); 31 | 32 | loop {} 33 | } 34 | 35 | pub struct Bmp180 { 36 | ac1: i32, 37 | ac2: i32, 38 | ac3: i32, 39 | ac4: i32, 40 | ac5: i32, 41 | ac6: i32, 42 | b1: i32, 43 | b2: i32, 44 | mb: i32, 45 | mc: i32, 46 | md: i32, 47 | 48 | temp: f32, 49 | } 50 | 51 | impl Bmp180 { 52 | pub fn new() -> Bmp180 { 53 | Bmp180 { 54 | ac1: 7408, 55 | ac2: -1157, 56 | ac3: -14690, 57 | ac4: -31198, 58 | ac5: 25186, 59 | ac6: 18982, 60 | b1: 6515, 61 | b2: 45, 62 | mb: -32768, 63 | mc: -11786, 64 | md: 2733, 65 | temp: 0.0, 66 | } 67 | } 68 | 69 | pub fn measure(&mut self) { 70 | // Read 2 bytes of data from address 0xF6(246) 71 | // temp msb, temp lsb 72 | let mut data = [0u8; 2]; 73 | data[0] = 108; 74 | data[1] = 162; 75 | 76 | // Convert the data 77 | let temp = (data[0] as u32) << 8 | data[1] as u32; 78 | 79 | // Callibration for Temperature 80 | let x1: f64 = (temp as f64 - self.ac6 as f64) * self.ac5 as f64 / 32768.0; 81 | let x2: f64 = (self.mc as f64 * 2048.0) / (x1 + self.md as f64); 82 | let b5: f64 = x1 + x2; 83 | let c_temp: f64 = ((b5 + 8.0) / 16.0) / 10.0; 84 | 85 | self.temp = c_temp as f32; 86 | } 87 | 88 | pub fn get_temperature(&self) -> f32 { 89 | self.temp 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "aho-corasick" 7 | version = "0.7.18" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" 10 | dependencies = [ 11 | "memchr", 12 | ] 13 | 14 | [[package]] 15 | name = "anyhow" 16 | version = "1.0.60" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "c794e162a5eff65c72ef524dfe393eb923c354e350bb78b9c7383df13f3bc142" 19 | 20 | [[package]] 21 | name = "autocfg" 22 | version = "1.1.0" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 25 | 26 | [[package]] 27 | name = "bare-metal" 28 | version = "1.0.0" 29 | source = "registry+https://github.com/rust-lang/crates.io-index" 30 | checksum = "f8fe8f5a8a398345e52358e18ff07cc17a568fbca5c6f73873d3a62056309603" 31 | 32 | [[package]] 33 | name = "cfg-if" 34 | version = "1.0.0" 35 | source = "registry+https://github.com/rust-lang/crates.io-index" 36 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 37 | 38 | [[package]] 39 | name = "core-isa-parser" 40 | version = "0.2.0" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "23ec98e54b735872e54b2335c2e5a5c7fa7d9c3bfd45500f75280f84089a0083" 43 | dependencies = [ 44 | "anyhow", 45 | "enum-as-inner", 46 | "regex", 47 | "strum", 48 | "strum_macros", 49 | ] 50 | 51 | [[package]] 52 | name = "darling" 53 | version = "0.14.1" 54 | source = "registry+https://github.com/rust-lang/crates.io-index" 55 | checksum = "4529658bdda7fd6769b8614be250cdcfc3aeb0ee72fe66f9e41e5e5eb73eac02" 56 | dependencies = [ 57 | "darling_core", 58 | "darling_macro", 59 | ] 60 | 61 | [[package]] 62 | name = "darling_core" 63 | version = "0.14.1" 64 | source = "registry+https://github.com/rust-lang/crates.io-index" 65 | checksum = "649c91bc01e8b1eac09fb91e8dbc7d517684ca6be8ebc75bb9cafc894f9fdb6f" 66 | dependencies = [ 67 | "fnv", 68 | "ident_case", 69 | "proc-macro2", 70 | "quote", 71 | "strsim", 72 | "syn", 73 | ] 74 | 75 | [[package]] 76 | name = "darling_macro" 77 | version = "0.14.1" 78 | source = "registry+https://github.com/rust-lang/crates.io-index" 79 | checksum = "ddfc69c5bfcbd2fc09a0f38451d2daf0e372e367986a83906d1b0dbc88134fb5" 80 | dependencies = [ 81 | "darling_core", 82 | "quote", 83 | "syn", 84 | ] 85 | 86 | [[package]] 87 | name = "embedded-hal" 88 | version = "0.2.7" 89 | source = "registry+https://github.com/rust-lang/crates.io-index" 90 | checksum = "35949884794ad573cf46071e41c9b60efb0cb311e3ca01f7af807af1debc66ff" 91 | dependencies = [ 92 | "nb 0.1.3", 93 | "void", 94 | ] 95 | 96 | [[package]] 97 | name = "embedded-hal" 98 | version = "1.0.0-alpha.8" 99 | source = "registry+https://github.com/rust-lang/crates.io-index" 100 | checksum = "c3babfc7fd332142a0b11aebf592992f211f4e01b6222fb04b03aba1bd80018d" 101 | dependencies = [ 102 | "nb 1.0.0", 103 | ] 104 | 105 | [[package]] 106 | name = "enum-as-inner" 107 | version = "0.4.0" 108 | source = "registry+https://github.com/rust-lang/crates.io-index" 109 | checksum = "21cdad81446a7f7dc43f6a77409efeb9733d2fa65553efef6018ef257c959b73" 110 | dependencies = [ 111 | "heck", 112 | "proc-macro2", 113 | "quote", 114 | "syn", 115 | ] 116 | 117 | [[package]] 118 | name = "esp-backtrace" 119 | version = "0.2.0" 120 | source = "registry+https://github.com/rust-lang/crates.io-index" 121 | checksum = "1cc04e4a62fe7905eab18e12715feaded6cb51a5a878a0c067bbe29436bad96a" 122 | dependencies = [ 123 | "esp-println", 124 | "xtensa-lx-rt", 125 | ] 126 | 127 | [[package]] 128 | name = "esp-hal-common" 129 | version = "0.1.0" 130 | source = "git+https://github.com/esp-rs/esp-hal.git#2a1ab6da0ec6987d02aeb73e89f1199f866db09a" 131 | dependencies = [ 132 | "cfg-if", 133 | "embedded-hal 0.2.7", 134 | "esp-hal-procmacros", 135 | "esp32", 136 | "fugit", 137 | "nb 1.0.0", 138 | "paste", 139 | "void", 140 | "xtensa-lx", 141 | "xtensa-lx-rt", 142 | ] 143 | 144 | [[package]] 145 | name = "esp-hal-procmacros" 146 | version = "0.1.0" 147 | source = "git+https://github.com/esp-rs/esp-hal.git#2a1ab6da0ec6987d02aeb73e89f1199f866db09a" 148 | dependencies = [ 149 | "darling", 150 | "proc-macro-error", 151 | "proc-macro2", 152 | "quote", 153 | "syn", 154 | ] 155 | 156 | [[package]] 157 | name = "esp-println" 158 | version = "0.2.2" 159 | source = "registry+https://github.com/rust-lang/crates.io-index" 160 | checksum = "dab33baae57ce7c0869c32885ff136f9c8405e0c201d039ccd767c3e7f79502b" 161 | 162 | [[package]] 163 | name = "esp32" 164 | version = "0.12.0" 165 | source = "git+https://github.com/esp-rs/esp-pacs.git?branch=with_source#23f9f7626867c98c98bac45f93109a8b794dbb66" 166 | dependencies = [ 167 | "bare-metal", 168 | "vcell", 169 | "xtensa-lx", 170 | "xtensa-lx-rt", 171 | ] 172 | 173 | [[package]] 174 | name = "esp32-hal" 175 | version = "0.1.0" 176 | source = "git+https://github.com/esp-rs/esp-hal.git#2a1ab6da0ec6987d02aeb73e89f1199f866db09a" 177 | dependencies = [ 178 | "bare-metal", 179 | "embedded-hal 0.2.7", 180 | "embedded-hal 1.0.0-alpha.8", 181 | "esp-hal-common", 182 | "nb 1.0.0", 183 | "xtensa-lx", 184 | "xtensa-lx-rt", 185 | ] 186 | 187 | [[package]] 188 | name = "esp32_still_working" 189 | version = "0.1.0" 190 | dependencies = [ 191 | "esp-backtrace", 192 | "esp-println", 193 | "esp32-hal", 194 | "xtensa-lx-rt", 195 | ] 196 | 197 | [[package]] 198 | name = "fnv" 199 | version = "1.0.7" 200 | source = "registry+https://github.com/rust-lang/crates.io-index" 201 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 202 | 203 | [[package]] 204 | name = "fugit" 205 | version = "0.3.6" 206 | source = "registry+https://github.com/rust-lang/crates.io-index" 207 | checksum = "7ab17bb279def6720d058cb6c052249938e7f99260ab534879281a95367a87e5" 208 | dependencies = [ 209 | "gcd", 210 | ] 211 | 212 | [[package]] 213 | name = "gcd" 214 | version = "2.1.0" 215 | source = "registry+https://github.com/rust-lang/crates.io-index" 216 | checksum = "f37978dab2ca789938a83b2f8bc1ef32db6633af9051a6cd409eff72cbaaa79a" 217 | dependencies = [ 218 | "paste", 219 | ] 220 | 221 | [[package]] 222 | name = "heck" 223 | version = "0.4.0" 224 | source = "registry+https://github.com/rust-lang/crates.io-index" 225 | checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" 226 | 227 | [[package]] 228 | name = "ident_case" 229 | version = "1.0.1" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" 232 | 233 | [[package]] 234 | name = "lock_api" 235 | version = "0.4.7" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" 238 | dependencies = [ 239 | "autocfg", 240 | "scopeguard", 241 | ] 242 | 243 | [[package]] 244 | name = "memchr" 245 | version = "2.5.0" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 248 | 249 | [[package]] 250 | name = "minijinja" 251 | version = "0.15.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "359c4820413be7706e93999171652e140578384f85faac14cb22d350bd0fbabf" 254 | dependencies = [ 255 | "serde", 256 | ] 257 | 258 | [[package]] 259 | name = "mutex-trait" 260 | version = "0.2.0" 261 | source = "registry+https://github.com/rust-lang/crates.io-index" 262 | checksum = "b4bb1638d419e12f8b1c43d9e639abd0d1424285bdea2f76aa231e233c63cd3a" 263 | 264 | [[package]] 265 | name = "nb" 266 | version = "0.1.3" 267 | source = "registry+https://github.com/rust-lang/crates.io-index" 268 | checksum = "801d31da0513b6ec5214e9bf433a77966320625a37860f910be265be6e18d06f" 269 | dependencies = [ 270 | "nb 1.0.0", 271 | ] 272 | 273 | [[package]] 274 | name = "nb" 275 | version = "1.0.0" 276 | source = "registry+https://github.com/rust-lang/crates.io-index" 277 | checksum = "546c37ac5d9e56f55e73b677106873d9d9f5190605e41a856503623648488cae" 278 | 279 | [[package]] 280 | name = "paste" 281 | version = "1.0.8" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | checksum = "9423e2b32f7a043629287a536f21951e8c6a82482d0acb1eeebfc90bc2225b22" 284 | 285 | [[package]] 286 | name = "proc-macro-error" 287 | version = "1.0.4" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" 290 | dependencies = [ 291 | "proc-macro-error-attr", 292 | "proc-macro2", 293 | "quote", 294 | "syn", 295 | "version_check", 296 | ] 297 | 298 | [[package]] 299 | name = "proc-macro-error-attr" 300 | version = "1.0.4" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" 303 | dependencies = [ 304 | "proc-macro2", 305 | "quote", 306 | "version_check", 307 | ] 308 | 309 | [[package]] 310 | name = "proc-macro2" 311 | version = "1.0.43" 312 | source = "registry+https://github.com/rust-lang/crates.io-index" 313 | checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab" 314 | dependencies = [ 315 | "unicode-ident", 316 | ] 317 | 318 | [[package]] 319 | name = "quote" 320 | version = "1.0.21" 321 | source = "registry+https://github.com/rust-lang/crates.io-index" 322 | checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" 323 | dependencies = [ 324 | "proc-macro2", 325 | ] 326 | 327 | [[package]] 328 | name = "r0" 329 | version = "1.0.0" 330 | source = "registry+https://github.com/rust-lang/crates.io-index" 331 | checksum = "bd7a31eed1591dcbc95d92ad7161908e72f4677f8fabf2a32ca49b4237cbf211" 332 | 333 | [[package]] 334 | name = "regex" 335 | version = "1.6.0" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" 338 | dependencies = [ 339 | "aho-corasick", 340 | "memchr", 341 | "regex-syntax", 342 | ] 343 | 344 | [[package]] 345 | name = "regex-syntax" 346 | version = "0.6.27" 347 | source = "registry+https://github.com/rust-lang/crates.io-index" 348 | checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" 349 | 350 | [[package]] 351 | name = "rustversion" 352 | version = "1.0.9" 353 | source = "registry+https://github.com/rust-lang/crates.io-index" 354 | checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" 355 | 356 | [[package]] 357 | name = "scopeguard" 358 | version = "1.1.0" 359 | source = "registry+https://github.com/rust-lang/crates.io-index" 360 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 361 | 362 | [[package]] 363 | name = "serde" 364 | version = "1.0.142" 365 | source = "registry+https://github.com/rust-lang/crates.io-index" 366 | checksum = "e590c437916fb6b221e1d00df6e3294f3fccd70ca7e92541c475d6ed6ef5fee2" 367 | 368 | [[package]] 369 | name = "spin" 370 | version = "0.9.4" 371 | source = "registry+https://github.com/rust-lang/crates.io-index" 372 | checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09" 373 | dependencies = [ 374 | "lock_api", 375 | ] 376 | 377 | [[package]] 378 | name = "strsim" 379 | version = "0.10.0" 380 | source = "registry+https://github.com/rust-lang/crates.io-index" 381 | checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 382 | 383 | [[package]] 384 | name = "strum" 385 | version = "0.24.1" 386 | source = "registry+https://github.com/rust-lang/crates.io-index" 387 | checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" 388 | 389 | [[package]] 390 | name = "strum_macros" 391 | version = "0.24.3" 392 | source = "registry+https://github.com/rust-lang/crates.io-index" 393 | checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" 394 | dependencies = [ 395 | "heck", 396 | "proc-macro2", 397 | "quote", 398 | "rustversion", 399 | "syn", 400 | ] 401 | 402 | [[package]] 403 | name = "syn" 404 | version = "1.0.99" 405 | source = "registry+https://github.com/rust-lang/crates.io-index" 406 | checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13" 407 | dependencies = [ 408 | "proc-macro2", 409 | "quote", 410 | "unicode-ident", 411 | ] 412 | 413 | [[package]] 414 | name = "unicode-ident" 415 | version = "1.0.3" 416 | source = "registry+https://github.com/rust-lang/crates.io-index" 417 | checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf" 418 | 419 | [[package]] 420 | name = "vcell" 421 | version = "0.1.3" 422 | source = "registry+https://github.com/rust-lang/crates.io-index" 423 | checksum = "77439c1b53d2303b20d9459b1ade71a83c716e3f9c34f3228c00e6f185d6c002" 424 | 425 | [[package]] 426 | name = "version_check" 427 | version = "0.9.4" 428 | source = "registry+https://github.com/rust-lang/crates.io-index" 429 | checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 430 | 431 | [[package]] 432 | name = "void" 433 | version = "1.0.2" 434 | source = "registry+https://github.com/rust-lang/crates.io-index" 435 | checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" 436 | 437 | [[package]] 438 | name = "xtensa-lx" 439 | version = "0.7.0" 440 | source = "registry+https://github.com/rust-lang/crates.io-index" 441 | checksum = "b874b2b60f9c25682e0961fd53a802053e6950f7567bc6f2d6c734fb6d93f45a" 442 | dependencies = [ 443 | "bare-metal", 444 | "mutex-trait", 445 | "r0", 446 | "spin", 447 | ] 448 | 449 | [[package]] 450 | name = "xtensa-lx-rt" 451 | version = "0.13.0" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | checksum = "33a17a83d25998da4f2dca85afb6456ea340d3bde0211bebac011eb45dcbd2f4" 454 | dependencies = [ 455 | "bare-metal", 456 | "core-isa-parser", 457 | "minijinja", 458 | "r0", 459 | "xtensa-lx-rt-proc-macros", 460 | ] 461 | 462 | [[package]] 463 | name = "xtensa-lx-rt-proc-macros" 464 | version = "0.1.0" 465 | source = "registry+https://github.com/rust-lang/crates.io-index" 466 | checksum = "21a8200930e2dbd515c231f7a46033bd6dfe1497a8e9a539878f0de8f0cd730b" 467 | dependencies = [ 468 | "proc-macro2", 469 | "quote", 470 | "syn", 471 | ] 472 | --------------------------------------------------------------------------------