{"id":22138768,"url":"https://github.com/trussed-dev/littlefs2","last_synced_at":"2025-04-12T23:37:59.717Z","repository":{"id":41203581,"uuid":"226605879","full_name":"trussed-dev/littlefs2","owner":"trussed-dev","description":"Idiomatic Rust API for littlefs","archived":false,"fork":false,"pushed_at":"2025-03-11T16:09:09.000Z","size":11086,"stargazers_count":65,"open_issues_count":26,"forks_count":30,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T23:37:53.473Z","etag":null,"topics":["embedded","filesystem","littlefs","no-std","rust"],"latest_commit_sha":null,"homepage":"https://lib.rs/littlefs2","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trussed-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"nickray"}},"created_at":"2019-12-08T02:54:40.000Z","updated_at":"2025-03-26T18:30:12.000Z","dependencies_parsed_at":"2023-11-14T16:38:59.945Z","dependency_job_id":"1c37f36a-c108-4882-9e8e-7408486a1592","html_url":"https://github.com/trussed-dev/littlefs2","commit_stats":{"total_commits":87,"total_committers":7,"mean_commits":"12.428571428571429","dds":0.1839080459770115,"last_synced_commit":"8019e8ad6ddb9ed21785372d8b049679111e1cfb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussed-dev%2Flittlefs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussed-dev%2Flittlefs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussed-dev%2Flittlefs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussed-dev%2Flittlefs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trussed-dev","download_url":"https://codeload.github.com/trussed-dev/littlefs2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647256,"owners_count":21139081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded","filesystem","littlefs","no-std","rust"],"created_at":"2024-12-01T20:11:56.343Z","updated_at":"2025-04-12T23:37:59.691Z","avatar_url":"https://github.com/trussed-dev.png","language":"Rust","funding_links":["https://github.com/sponsors/nickray"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003elittlefs2\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n \u003cstrong\u003e\n   Idiomatic Rust API for littlefs\n \u003c/strong\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Crates version --\u003e\n  \u003ca href=\"https://crates.io/crates/littlefs2\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/littlefs2.svg?style=flat-square\"\n    alt=\"Crates.io version\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- API docs --\u003e\n  \u003ca href=\"https://docs.rs/littlefs2\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\"\n      alt=\"API docs\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Continuous build --\u003e\n  \u003ca href=\"https://github.com/trussed-dev/littlefs2/actions?query=branch%3Amain\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/trussed-dev/littlefs2/ci.yml?branch=main\u0026style=for-the-badge\"\n      alt=\"CI\" height=\"20\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## What is this?\n\nIdiomatic Rust API for the [littlefs][littlefs] microcontroller filesystem by [Chris Haster][geky].\n\nNumber `2` refers to the on-disk format version, [supporting inline files, custom attributes and dynamic wear-leveling][release-notes-2].\n\nWe follow [`std::fs`][std-fs] as much as reasonable.\n\nThe low-level bindings are provided by the [littlefs2-sys][littlefs2-sys] library.\n\nThe core types that are independent of a specific implementation version are provided by the `littlefs2-core` crate, see the [`core`](./core) directory.  These types are re-exported from the `littlefs2` crate too.\n\nUpstream release: [v2.9.3][upstream-release]\n\n[geky]: https://github.com/geky\n[littlefs]: https://github.com/littlefs-project/littlefs\n[release-notes-2]: https://github.com/littlefs-project/littlefs/releases/tag/v2.0.0\n[std-fs]: https://doc.rust-lang.org/std/fs/index.html\n[littlefs2-sys]: https://lib.rs/littlefs2-sys\n[upstream-release]: https://github.com/littlefs-project/littlefs/releases/tag/v2.9.3\n\n## `no_std`\n\nThis library is `no_std` compatible, but there are two gotchas.\n\n- The dev-dependency `memchr` of `littlefs2-sys` has its `std` features activated. To prevent this, upgrade to at least Rust 1.51\n  and add `resolver = \"2\"` in the consuming code's `[package]` section. This will be the default in Rust 2021 edition.\n\n- At link time, `lfs.c` has a dependency on `strcpy`. When not linking to a `libc` with this symbol, activate the `c-stubs` feature\n  to provide an implementation.\n\n#### License\n\n\u003csup\u003elittlefs is licensed under [BSD-3-Clause](https://github.com/littlefs-project/littlefs/blob/master/LICENSE.md).\u003c/sup\u003e\n\u003csup\u003eThis API for littlefs is licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT License](LICENSE-MIT) at your option.\u003c/sup\u003e\n\u003csup\u003ePrevious bindings exist in the [rust-littlefs](https://github.com/brandonedens/rust-littlefs) repository, also dual-licensed under Apache-2.0 and MIT.\u003c/sup\u003e\n\u003cbr\u003e\n\u003csub\u003eUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrussed-dev%2Flittlefs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrussed-dev%2Flittlefs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrussed-dev%2Flittlefs2/lists"}