Update Cargo.toml (#67)
* Update `defmt-rtt` * Omit patch version from dependencies * Format `Cargo.toml` * Switch to rust 2021 edition * Use `opt-level = 'z'` again * Re-enable `lto`
This commit is contained in:
+17
-21
@@ -2,7 +2,7 @@
|
||||
# TODO(1) fix `authors` and `name` if you didn't use `cargo-generate`
|
||||
authors = ["{{authors}}"]
|
||||
name = "{{project-name}}"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
version = "0.1.0"
|
||||
|
||||
[lib]
|
||||
@@ -14,16 +14,16 @@ name = "integration"
|
||||
harness = false
|
||||
|
||||
[dependencies]
|
||||
cortex-m = "0.7.3"
|
||||
cortex-m-rt = "0.7.0"
|
||||
defmt = "0.3.0"
|
||||
defmt-rtt = "0.3.0"
|
||||
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
||||
cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
|
||||
cortex-m-rt = "0.7"
|
||||
defmt = "0.3"
|
||||
defmt-rtt = "0.4"
|
||||
panic-probe = { version = "0.3", features = ["print-defmt"] }
|
||||
# TODO(4) enter your HAL here
|
||||
# some-hal = "1.2.3"
|
||||
|
||||
[dev-dependencies]
|
||||
defmt-test = "0.3.0"
|
||||
defmt-test = "0.3"
|
||||
|
||||
# cargo build/run
|
||||
[profile.dev]
|
||||
@@ -31,8 +31,8 @@ codegen-units = 1
|
||||
debug = 2
|
||||
debug-assertions = true # <-
|
||||
incremental = false
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = true # <-
|
||||
opt-level = 'z' # <-
|
||||
overflow-checks = true # <-
|
||||
|
||||
# cargo test
|
||||
[profile.test]
|
||||
@@ -40,8 +40,8 @@ codegen-units = 1
|
||||
debug = 2
|
||||
debug-assertions = true # <-
|
||||
incremental = false
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = true # <-
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = true # <-
|
||||
|
||||
# cargo build/run --release
|
||||
[profile.release]
|
||||
@@ -49,12 +49,9 @@ codegen-units = 1
|
||||
debug = 2
|
||||
debug-assertions = false # <-
|
||||
incremental = false
|
||||
# NOTE disabled to work around issue rust-lang/rust#90357
|
||||
# the bug results in log messages not having location information
|
||||
# (the line printed below the log message that contains the file-line location)
|
||||
# lto = 'fat'
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = false # <-
|
||||
lto = 'fat'
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = false # <-
|
||||
|
||||
# cargo test --release
|
||||
[profile.bench]
|
||||
@@ -62,10 +59,9 @@ codegen-units = 1
|
||||
debug = 2
|
||||
debug-assertions = false # <-
|
||||
incremental = false
|
||||
# see comment in the profile.release section
|
||||
lto = false
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = false # <-
|
||||
lto = 'fat'
|
||||
opt-level = 3 # <-
|
||||
overflow-checks = false # <-
|
||||
|
||||
# uncomment this to switch from the crates.io version of defmt to its git version
|
||||
# check app-template's README for instructions
|
||||
|
||||
Reference in New Issue
Block a user