Skip to content

Commit

Permalink
Improve DataType enum (#27)
Browse files Browse the repository at this point in the history
* improve DataType enum

* fix serialization macro

* bump msrv to 1.65

* bump msrv to 1.67
  • Loading branch information
thetek42 authored Nov 24, 2023
1 parent 2123f13 commit b1ace9e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: ["1.64.0", stable]
toolchain: ["1.67.0", stable]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "esp-idf-part"
version = "0.4.1"
authors = ["Jesse Braham <[email protected]>"]
edition = "2021"
rust-version = "1.64.0"
rust-version = "1.67.0"
description = "A library for parsing and generating ESP-IDF partition tables"
repository = "https://github.com/esp-rs/esp-idf-part"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![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)
[![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)
[![docs.rs](https://img.shields.io/docsrs/esp-idf-part?color=C96329&logo=rust&style=flat-square)](https://docs.rs/esp-idf-part)
![MSRV](https://img.shields.io/badge/MSRV-1.64-blue?style=flat-square)
![MSRV](https://img.shields.io/badge/MSRV-1.67-blue?style=flat-square)
![Crates.io](https://img.shields.io/crates/l/esp-idf-part?style=flat-square)

A library for parsing and generating ESP-IDF partition tables. Supports parsing from and generating to both CSV and binary formats.
Expand Down
3 changes: 3 additions & 0 deletions src/partition/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,14 @@ pub enum DataType {
Nvs = 0x02,
Coredump = 0x03,
NvsKeys = 0x04,
#[serde(rename = "efuse")]
#[strum(serialize = "efuse")]
EfuseEm = 0x05,
Undefined = 0x06,
Esphttpd = 0x80,
Fat = 0x81,
Spiffs = 0x82,
Littlefs = 0x83,
}

/// A single partition definition
Expand Down

0 comments on commit b1ace9e

Please sign in to comment.