#reserved #fat #fat32 #system #std #environment #memory #write

no-std hadris-fat

A library for working with FAT32 file systems, a standalone crate included in the hadris project

2 releases

0.1.1 Feb 20, 2025
0.1.0 Feb 13, 2025

#969 in Embedded development

MIT license

110KB
2K SLoC

A library for working with FAT32 file systems Supports reading and writing to FAT32 file systems, with no-std support

When used with no features, the crate act as a place for providing the structures used in the FAT32 file system.

Cargo Features

  • alloc: Enables the 'alloc' feature, which allows for dynamic allocation of memory
  • std: Enables the 'std' feature, which requires an 'std' environment
  • read: Enables the 'read' feature, which allows for reading from FAT32 file systems
  • write: Enables the 'write' feature, which allows for writing to FAT32 file systems
  • lfn: Enables the 'lfn' feature, which allows for reading and writing long file names, which is an optional extension to the FAT32 specification

Fat32 File System

This crate provides a FAT32 file system implementation.

Usage

Add this to your Cargo.toml:

[dependencies]
hadris-fat = { version = "0.1" }

Features

write

Enables writing to the file system. This is enabled by default.

For no-std environments, this feature is gated behind the alloc feature.

std

This feature automatically enables the 'alloc' feature.

alloc

Enables the alloc feature for no-std environments. This allows for the use of dynamic memory allocation, which is used for some operations.

Dependencies

~1.5–2.4MB
~43K SLoC