32 Commits
Author SHA1 Message Date
Robin Krahl 45e25a4dfd Release v0.3.2 0.3.2 2026-02-25 16:29:25 +01:00
Robin Krahl 65e2a03484 Add unstable-littlefs-patched feature
In #27, we updated littlefs to a patched version that backports a change
from littlefs v2.11 (filesystem shrinking) and adds a feature that has
not been merged upstream yet (config flag to disable block count check
on mount). To be able to cut a new release without rolling out these
changes to all users, this patch adds the new unstable-littlefs-patched
feature that enables these changes.
2026-02-25 16:20:18 +01:00
Robin Krahl 357781807f Add trusted publishing 2026-02-25 13:30:51 +01:00
Sosthène Guédonandsosthene-nitrokey 1cfd35c997 Update littlefs including shrinking and block count check flag v0.3.1-nitrokey.1 2025-05-12 17:44:44 +02:00
Sosthène Guédonandsosthene-nitrokey 55d0f97434 Add a unstable-disable-block-count-check feature that removes the block count check
Upstream PR: https://github.com/littlefs-project/littlefs/pull/584 introduced a check
that the block count matches the superblock.

However that can cause some issues for filesystem that were formatted with a wrong block count
and later corrected.
2025-04-16 11:04:07 +02:00
Robin Krahl fa642ad1a5 Fix upstream release in readme 2025-02-27 22:12:25 +01:00
Robin Krahl 64054fd2d2 Derive Default if possible
This makes it easier to initialize structs without using unsafe code.
2025-02-27 14:00:49 +01:00
Robin Krahl 4b2b82c4f3 Fix code generation with multiversion feature and release v0.3.1
During rebasing of https://github.com/trussed-dev/littlefs2-sys/pull/19,
the line that enables the LFS_MULTIVERSION feature flag not only for the
compilation but also for the code generation somehow got lost.  This
patch updates the build script and prepares the bugfix release v0.3.1.
0.3.1
2025-02-26 16:07:05 +01:00
Robin Krahl ed32886802 Release v0.3.0 0.3.0 2025-02-26 11:50:15 +01:00
Sosthène GuédonandRobin Krahl 06b0da3ed6 Bump littlefs version
This patch:

- Bumps the littlefs version to the latest released (v2.9.3)
- Adds a "multiversion" feature flag that exposes the littlefs feature
of the same name
- Patch lfs.h before building to avoid errors from clang failing to find
the string.h header (this step is not required for the compilation
because compilation is done through gcc by default)
2025-02-26 11:39:16 +01:00
liebmanandRobin Krahl aa64d080e8 don't set clang target as its already handled in bindgen by default 2024-09-18 12:13:23 +02:00
Robin Krahl cd3a80d8d9 Add CI workflow 2024-09-18 12:09:41 +02:00
Robin Krahl c12b0dc8b5 Release v0.2.0 0.2.0 2024-05-28 11:06:56 +02:00
Robin Krahl 17df422c4b Use core::ffi::* instead of cty::*
Since Rust 1.64.0, the C-compatible typedefs are also available in core
so we no longer need the cty dependency.
2024-05-28 10:28:03 +02:00
Sosthène GuédonandRobin Krahl 39626c0dbc Update changelog 2024-04-04 10:56:38 +02:00
Sosthène GuédonandRobin Krahl db0cf4529f Make use of intrinsics a feature-flag 2024-04-04 10:56:38 +02:00
liebmanandRobin Krahl 76365b754c update changelog 2024-04-03 14:05:27 +02:00
liebmanandRobin Krahl 42b7997d53 filter synbols to only include lfs_ and LFS_ prefixes 2024-04-03 14:05:27 +02:00
liebmanandRobin Krahl fb14ef5a18 upgrate bindgen to 0.69.4 2024-04-03 14:05:27 +02:00
Simon LucidoandRobin Krahl 0dab5d9c0d Malloc feature flag
Some user of the crate might want to let the C implementation call
malloc on its own.

Signed-off-by: Simon Lucido <simonl@rivosinc.com>
Signed-off-by: Simon LUCIDO <simon.lucido@etu.umontpellier.fr>
2023-11-06 16:13:58 +01:00
Robin KrahlandNicolas Stalder 8c786d1c51 Release v0.1.7 0.1.7 2023-01-30 23:34:04 +01:00
Sosthène GuédonandRobin Krahl a2cc6720e2 Add runtime feature to bindgen dependency 2023-01-25 10:11:36 +01:00
Nicolas Stalder adbf4dd470 Bump bindgen, new release 0.1.6 2021-01-06 12:24:02 +01:00
Nicolas Stalder da42d4ea10 Avoid activating log/std via bindgen 2021-01-06 12:22:39 +01:00
Nicolas Stalder 711b3067da Fail directly if TARGET were missing 2021-01-06 12:19:35 +01:00