summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-04-05 21:11:02 +0200
committerandromeda <andromeda@lenovo>2026-04-05 21:11:02 +0200
commit399d59d5e7a01d6d6bd5f8321450f666dc841bef (patch)
tree21f88472b2faa55d127d2fbd4faeb1b4f449de42 /Cargo.toml
init
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml39
1 files changed, 39 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..01dac60
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,39 @@
+[package]
+edition = "2024"
+name = "esp32c6-play"
+rust-version = "1.88"
+version = "0.1.0"
+
+[[bin]]
+name = "esp32c6-play"
+path = "./src/bin/main.rs"
+
+[dependencies]
+esp-hal = { version = "~1.0", features = ["esp32c6", "log-04"] }
+
+
+esp-bootloader-esp-idf = { version = "0.4.0", features = ["esp32c6", "log-04"] }
+log = "0.4.27"
+
+critical-section = "1.2.0"
+esp-backtrace = { version = "0.18.1", features = [
+ "esp32c6",
+ "panic-handler",
+ "println",
+] }
+esp-println = { version = "0.16.1", features = ["esp32c6", "log-04"] }
+
+
+[profile.dev]
+# Rust debug is too slow.
+# For debug builds always builds with some optimization
+opt-level = "s"
+
+[profile.release]
+codegen-units = 1 # LLVM can perform better optimizations using a single thread
+debug = 2
+debug-assertions = false
+incremental = false
+lto = 'fat'
+opt-level = 's'
+overflow-checks = false