Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .cargo/config.toml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
/Cargo.lock
/.embuild
/.embuild
components_esp32s3.lock
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name = "esp-camera-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
esp-idf-hal = "0.43.1"
esp-idf-sys = "0.34.1"
esp-idf-hal = "0.44.1"
esp-idf-sys = "0.35"

concat-idents = "1.1.5"

[patch.crates-io]
esp-idf-sys = { git = "https://github.com/esp-rs/esp-idf-sys", branch = "master" }
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# esp-camera-rs
Rust wrapper library to interface with the ESP32 camera
Rust wrapper library to interface with the ESP32 and ESP32 S3 cameras. The way to define configuration
for camera was reworked, get methods added and set methods rewrote to use macro.

See [examples/camera-example/README.md](examples/camera-example/README.md) for usage details.

Do not runt cargo build in this directory, run it in the example dir!
12 changes: 8 additions & 4 deletions examples/camera-example/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
[build]
target = "xtensa-esp32-espidf"
target = "xtensa-esp32s3-espidf"

[target.xtensa-esp32-espidf]
[target.xtensa-esp32s3-espidf]
linker = "ldproxy"
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x
runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
runner = "espflash flash --monitor -T target/xtensa-esp32s3-espidf/release/partition-table.bin" # Select this runner for espflash v2.x.x
rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110

[unstable]
build-std = ["std", "panic_abort"]

[env]
MCU="esp32"
MCU="esp32s3"
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
ESP_IDF_VERSION = "v5.1.3"

# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174 until
# https://github.com/esp-rs/esp-idf-hal/pull/387 gets released and the template
# updated.
CRATE_CC_NO_DEFAULTS = "1"
1 change: 0 additions & 1 deletion examples/camera-example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.embuild/
target/
components_esp32.lock
Cargo.lock
Loading