nanoflash 0.1.2

Lay out the flash of ESP32 and Arduino boards and write firmware to them through their bootloaders, natively or in the browser over Web Serial.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "nanoflash"
version = "0.1.2"
authors = ["Alix ANNERAUD <alix@anneraud.fr>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lay out the flash of ESP32 and Arduino boards and write firmware to them through their bootloaders, natively or in the browser over Web Serial."
homepage = "https://alixanneraud.github.io/nanoflash/"
readme = "README.md"
keywords = [
    "esp32",
    "arduino",
    "flash",
    "partition-table",
    "web-serial",
]
categories = [
    "embedded",
    "no-std",
    "hardware-support",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/AlixANNERAUD/nanoflash"

[package.metadata.docs.rs]
all-features = true

[features]
avr = ["flash"]
build = [
    "toml",
    "json",
    "table-linker",
    "cargo",
]
cargo = ["toml"]
default = []
elf = [
    "flash",
    "dep:object",
]
espressif = [
    "table-espressif",
    "flash",
    "dep:miniz_oxide",
]
flash = [
    "toml",
    "table-espressif",
    "dep:sha2",
]
json = ["dep:serde_json"]
native = ["dep:serialport"]
samba = [
    "flash",
    "dep:crc",
]
table-espressif = ["dep:md-5"]
table-linker = []
table-mbr = ["dep:mbrman"]
testing = []
toml = ["dep:toml"]
web = [
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:wasm-bindgen-futures",
]

[lib]
name = "nanoflash"
path = "src/lib.rs"

[[test]]
name = "avr"
path = "tests/avr.rs"
required-features = [
    "avr",
    "testing",
]

[[test]]
name = "espressif"
path = "tests/espressif.rs"
required-features = [
    "espressif",
    "testing",
]

[[test]]
name = "external_parsers"
path = "tests/external_parsers.rs"
required-features = [
    "toml",
    "table-espressif",
    "table-mbr",
]

[[test]]
name = "flash"
path = "tests/flash.rs"
required-features = [
    "espressif",
    "json",
    "testing",
]

[[test]]
name = "native_pty"
path = "tests/native_pty.rs"
required-features = ["native"]

[[test]]
name = "samba"
path = "tests/samba.rs"
required-features = [
    "samba",
    "testing",
]

[dependencies.crc]
version = "3"
optional = true
default-features = false

[dependencies.js-sys]
version = "0.3.107"
optional = true
default-features = false

[dependencies.mbrman]
version = "0.7"
optional = true
default-features = false

[dependencies.md-5]
version = "0.11"
optional = true
default-features = false

[dependencies.miniz_oxide]
version = "0.9"
features = ["with-alloc"]
optional = true
default-features = false

[dependencies.object]
version = "0.40"
features = [
    "read_core",
    "elf",
    "unaligned",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
default-features = false

[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.serialport]
version = "4.10"
optional = true
default-features = false

[dependencies.sha2]
version = "0.11"
optional = true
default-features = false

[dependencies.toml]
version = "1"
features = [
    "parse",
    "serde",
]
optional = true
default-features = false

[dependencies.wasm-bindgen]
version = "0.2.130"
optional = true
default-features = false

[dependencies.wasm-bindgen-futures]
version = "0.4.80"
optional = true
default-features = false

[dev-dependencies.esp-idf-part]
version = "0.6"

[dev-dependencies.ihex]
version = "3"

[dev-dependencies.mbrman]
version = "0.7"

[dev-dependencies.pollster]
version = "1"

[dev-dependencies.proptest]
version = "1.12"

[dev-dependencies.serde_json]
version = "1"

[lints.rust]
unsafe_code = "forbid"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]