1
0
Fork 0
mirror of https://github.com/imjasonh/esp32 synced 2026-07-06 23:52:24 +00:00
esp32/Cargo.toml
Jason Hall 62b50fde76 Merge main into cloud-logging
main bumped sha2 0.10 -> 0.11 (PR #8) and switched format!("{:x}", ...)
to hex::encode in src/ota.rs. The auto-merge handled both, plus
Cargo.toml union of dep lists. Cargo.lock had one residual marker around
the firmware deps block (kept main's qualified "sha2 0.11.0" + retained
cloud-logging's rsa/time/tracing-subscriber).

rsa = 0.9 still depends on sha2 = 0.10 internally, so SigningKey<Sha256>
must be parameterised against rsa's re-export (rsa::sha2::Sha256), not
our top-level sha2 0.11.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 18:01:58 -04:00

55 lines
1.9 KiB
TOML

[package]
name = "esp32-blinky"
version = "0.1.0"
edition = "2021"
resolver = "2"
rust-version = "1.77"
[[bin]]
name = "esp32-blinky"
harness = false
[profile.release]
opt-level = "s"
lto = true # link-time optimization across all crates
codegen-units = 1 # one CGU = more cross-fn opt at the cost of build speed
strip = true # drop ELF symbols not needed at runtime
panic = "abort" # smaller panic handler; matches build-std=panic_abort
[profile.dev]
debug = true
opt-level = "z"
[features]
default = ["std", "esp-idf-svc/native", "esp-idf-svc/binstart"]
pio = ["esp-idf-svc/pio"]
std = ["esp-idf-svc/std"]
[dependencies]
# `log-always` makes tracing emit log records even when a Subscriber is
# set, so EspLogger (a log::Logger) keeps writing to the serial console
# in addition to whatever subscriber layers we install (cloud_log).
tracing = { version = "0.1", features = ["log-always"] }
tracing-subscriber = { version = "0.3", default-features = false, features = ["registry"] }
anyhow = "1"
esp-idf-svc = "0.52"
embedded-svc = "0.29"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.11"
# `hex::encode` to render SHA digests; sha2 0.11's output type
# (`Array<u8, _>`) doesn't implement `LowerHex` like `GenericArray`
# did, so `format!("{:x}", ...)` no longer works.
hex = "0.4"
# Phase 4a: cosign Sigstore Bundle verification.
p256 = { version = "0.13", features = ["ecdsa"] } # leaf signs DSSE
p384 = { version = "0.13", features = ["ecdsa"] } # intermediate signs leaf
x509-cert = { version = "0.2", features = ["pem"] }
base64 = "0.22"
# Cloud Logging: RSA-PKCS#1v1.5 SHA-256 signing for service-account JWTs.
rsa = { version = "0.9", default-features = false, features = ["std", "pem", "sha2"] }
# RFC 3339 timestamp formatting for Cloud Logging entries.
time = { version = "0.3", default-features = false, features = ["std", "formatting"] }
[build-dependencies]
embuild = "0.33"