11[package ]
22authors = [
" Jonathan 'theJPster' Pallant <[email protected] >" ]
3- name = " neotron-bmc-pico "
3+ name = " neotron-bmc"
44edition = " 2018"
55version = " 0.2.0"
66
@@ -9,14 +9,15 @@ cortex-m = "0.7.1"
99cortex-m-rt = " 0.6.13"
1010defmt = " 0.2.0"
1111defmt-rtt = " 0.2.0"
12- cortex-m-rtic = " 0.5 "
12+ cortex-m-rtic = " 1.0 "
1313panic-probe = { version = " 0.2.0" , features = [" print-defmt" ] }
1414# Use this line if you have an STM32F030K6T6
1515# stm32f0xx-hal = { version = "0.17", features = ["stm32f030x6", "rt"] }
1616# Use this line if you have an STM32F031K6T6
1717stm32f0xx-hal = { version = " 0.17" , features = [" stm32f031" , " rt" ] }
1818debouncr = " 0.2"
19- heapless = " 0.6"
19+ heapless = " 0.7"
20+ fugit = " 0.3"
2021
2122[features ]
2223# set logging levels here
@@ -33,3 +34,48 @@ defmt-info = []
3334defmt-warn = []
3435defmt-error = []
3536
37+ # cargo build/run
38+ [profile .dev ]
39+ codegen-units = 1
40+ debug = 2
41+ debug-assertions = true # <-
42+ incremental = false
43+ opt-level = 3 # <-
44+ overflow-checks = true # <-
45+
46+ # cargo test
47+ [profile .test ]
48+ codegen-units = 1
49+ debug = 2
50+ debug-assertions = true # <-
51+ incremental = false
52+ opt-level = 3 # <-
53+ overflow-checks = true # <-
54+
55+ # cargo build/run --release
56+ [profile .release ]
57+ codegen-units = 1
58+ debug = 2
59+ debug-assertions = false # <-
60+ incremental = false
61+ lto = ' fat'
62+ opt-level = 3 # <-
63+ overflow-checks = false # <-
64+
65+ # cargo test --release
66+ [profile .bench ]
67+ codegen-units = 1
68+ debug = 2
69+ debug-assertions = false # <-
70+ incremental = false
71+ lto = ' fat'
72+ opt-level = 3 # <-
73+ overflow-checks = false # <-
74+
75+ # uncomment this to switch from the crates.io version of defmt to its git version
76+ # check app-template's README for instructions
77+ # [patch.crates-io]
78+ # defmt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
79+ # defmt-rtt = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
80+ # defmt-test = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
81+ # panic-probe = { git = "https://github.com/knurling-rs/defmt", rev = "use defmt version reported by `probe-run --version`" }
0 commit comments