Skip to content

Commit b1ace9e

Browse files
authored
Improve DataType enum (#27)
* improve DataType enum * fix serialization macro * bump msrv to 1.65 * bump msrv to 1.67
1 parent 2123f13 commit b1ace9e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
toolchain: ["1.64.0", stable]
32+
toolchain: ["1.67.0", stable]
3333

3434
steps:
3535
- uses: actions/checkout@v3

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "esp-idf-part"
33
version = "0.4.1"
44
authors = ["Jesse Braham <jesse@beta7.io>"]
55
edition = "2021"
6-
rust-version = "1.64.0"
6+
rust-version = "1.67.0"
77
description = "A library for parsing and generating ESP-IDF partition tables"
88
repository = "https://github.com/esp-rs/esp-idf-part"
99
license = "MIT OR Apache-2.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/esp-rs/esp-idf-part/ci.yml?label=CI&logo=github&style=flat-square)
44
[![Crates.io](https://img.shields.io/crates/v/esp-idf-part?color=C96329&logo=Rust&style=flat-square)](https://crates.io/crates/esp-idf-part)
55
[![docs.rs](https://img.shields.io/docsrs/esp-idf-part?color=C96329&logo=rust&style=flat-square)](https://docs.rs/esp-idf-part)
6-
![MSRV](https://img.shields.io/badge/MSRV-1.64-blue?style=flat-square)
6+
![MSRV](https://img.shields.io/badge/MSRV-1.67-blue?style=flat-square)
77
![Crates.io](https://img.shields.io/crates/l/esp-idf-part?style=flat-square)
88

99
A library for parsing and generating ESP-IDF partition tables. Supports parsing from and generating to both CSV and binary formats.

src/partition/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,14 @@ pub enum DataType {
248248
Nvs = 0x02,
249249
Coredump = 0x03,
250250
NvsKeys = 0x04,
251+
#[serde(rename = "efuse")]
252+
#[strum(serialize = "efuse")]
251253
EfuseEm = 0x05,
252254
Undefined = 0x06,
253255
Esphttpd = 0x80,
254256
Fat = 0x81,
255257
Spiffs = 0x82,
258+
Littlefs = 0x83,
256259
}
257260

258261
/// A single partition definition

0 commit comments

Comments
 (0)