#fat32 #systems #included #environments #write #reading

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

#738 in Filesystem

Download history 136/week @ 2025-02-12 138/week @ 2025-02-19 16/week @ 2025-02-26 2/week @ 2025-03-05

292 downloads per month
Used in hadris

MIT license

110KB
2K SLoC

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.


lib.rs:

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

Dependencies

~1.5–6.5MB
~43K SLoC