mirror of
https://github.com/trussed-dev/littlefs2.git
synced 2026-06-20 04:16:32 -07:00
69 lines
1.8 KiB
TOML
69 lines
1.8 KiB
TOML
[workspace]
|
|
members = ["core"]
|
|
|
|
[workspace.package]
|
|
edition = "2021"
|
|
license = "Apache-2.0 OR MIT"
|
|
repository = "https://github.com/trussed-dev/littlefs2"
|
|
|
|
[package]
|
|
name = "littlefs2"
|
|
description = "Idiomatic Rust API for littlefs"
|
|
version = "0.6.1"
|
|
authors = ["Nicolas Stalder <n@stalder.io>", "Brandon Edens <brandonedens@gmail.com>", "The Trussed developers"]
|
|
readme = "README.md"
|
|
categories = ["embedded", "filesystem", "no-std"]
|
|
documentation = "https://docs.rs/littlefs2"
|
|
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[[example]]
|
|
name = "list"
|
|
required-features = ["alloc", "littlefs2-core/heapless07"]
|
|
|
|
[dependencies]
|
|
bitflags = "2.9.0"
|
|
delog = "0.1.0"
|
|
heapless = "0.7"
|
|
littlefs2-core = { version = "0.1", path = "core" }
|
|
littlefs2-sys = { version = "0.3.1", features = ["multiversion"] }
|
|
pin-project = "1.1.10"
|
|
|
|
[dev-dependencies]
|
|
ssmarshal = "1"
|
|
serde = { version = "1.0", default-features = false, features = ["derive"] }
|
|
clap = { version = "4.5.31", features = ["derive"] }
|
|
hex = "0.4.3"
|
|
# trybuild = "1"
|
|
|
|
[features]
|
|
default = ["serde"]
|
|
alloc = []
|
|
serde = ["littlefs2-core/serde"]
|
|
# enable assertions in backend C code
|
|
ll-assertions = ["littlefs2-sys/assertions"]
|
|
# enable trace in backend C code
|
|
ll-trace = ["littlefs2-sys/trace"]
|
|
c-stubs = []
|
|
|
|
log-all = []
|
|
log-none = []
|
|
log-info = []
|
|
log-trace = []
|
|
log-debug = []
|
|
log-warn = []
|
|
log-error = []
|
|
|
|
# TODO: LFS_NAME_MAX (and maybe other sizes) are baked into the
|
|
# compiled C library. For instance, the `lfs_info` struct has a
|
|
# member `char name[LFS_NAME_MAX+1]`.
|
|
# This means that if we change `traits::Storage::FILENAME_MAX_PLUS_ONE`,
|
|
# we need to pass this on!
|
|
[patch.crates-io]
|
|
littlefs2-sys = { git = "https://github.com/trussed-dev/littlefs2-sys", rev = "v0.3.1-nitrokey.1" }
|