Introduce littlefs2-core crate

To make it easier to maintain applications using littlefs2, this patch
introduces a littlefs2-core crate with the basic types and traits used
by littlefs2, but without a specific implementation.

Fixes: https://github.com/trussed-dev/littlefs2/issues/55
This commit is contained in:
Robin Krahl
2024-08-12 08:30:25 +02:00
parent 97a7939437
commit 7356da54d1
17 changed files with 586 additions and 504 deletions
+11 -11
View File
@@ -30,29 +30,29 @@ jobs:
- name: Check
run: |
cargo check --all-targets
cargo check --all-targets --all-features
cargo check --all-targets --no-default-features
cargo check --all-targets --no-default-features --features serde
cargo check --all-targets --no-default-features --features dir-entry-path
cargo check --workspace --all-targets
cargo check --workspace --all-targets --all-features
cargo check --workspace --all-targets --no-default-features
cargo check --workspace --all-targets --no-default-features --features serde
cargo check --workspace --all-targets --no-default-features --features dir-entry-path
- name: Build
run: cargo build --release --verbose
run: cargo build --workspace --release --verbose
- name: Run clippy
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo clippy --all-features --all-targets -- --deny warnings
run: cargo clippy --workspace --all-features --all-targets -- --deny warnings
- name: Check code format
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo fmt -- --check
run: cargo fmt --all -- --check
- name: Run tests
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: >
cargo test &&
cargo test --release
cargo test --workspace &&
cargo test --workspace --release
- name: Check documentation
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace