128 Commits
Author SHA1 Message Date
Robin Krahl 87229aa2bf Release v0.2.2 v0.2.2 2026-10-09 01:27:32 +02:00
Robin Krahl 257f276174 ci: Run clippy for all targets 2026-10-09 01:27:17 +02:00
Robin Krahl 4773ba5555 Document and test MSRV 1.87
The MSRV is caused by the const slice::copy_from_slice added in Rust 1.87.
2026-10-09 01:25:41 +02:00
Robin Krahl e491fa1cb3 Use copy_from_slice instead of custom fill function 2026-10-09 01:25:36 +02:00
Robin Krahl 093f6f2785 Add Aid::rid_pix function to combine Aid::rid and Aid::pix 2026-10-09 01:25:29 +02:00
Robin Krahl 009084a49f Fix Aid::pix to respect the AID length and only return the actual PIX 2026-10-09 01:24:46 +02:00
Robin Krahl 7acc568708 Add test case for Aid::rid and Aid::pix 2026-10-09 01:24:42 +02:00
Robin Krahl 7841094f84 Fix Debug implementation for Aid 2026-10-09 01:24:38 +02:00
Robin Krahl 5e1c264e1c Add tests for Aid’s Debug implementation 2026-10-09 01:24:33 +02:00
Robin Krahl d4a24a1d4f Fix Aid::matches implementation
Fixes: https://github.com/trussed-dev/iso7816/issues/37
2026-10-09 01:24:28 +02:00
Robin Krahl b3453b97b8 Add test case for Aid::matches 2026-10-09 01:24:20 +02:00
Robin Krahl c7154b03d2 Release v0.2.1 v0.2.1 2026-09-20 21:14:06 +02:00
Robin Krahl 9e2c90fb06 Fix Aid::category and length validation in constructors
This patch fixes two connected bugs:

- Aid::category checked for ASCII characters instead of raw bytes,
  classifying almost all AIDs a Category::Other.
- Aid::try_new_truncatable (also called by all other constructors)
  enforced a maximum length instead of a minimum length for national
  and international AIDs. Due to the bug in Aid::category, this had
  virtually no effect though.
2026-09-20 21:05:56 +02:00
Robin Krahl 32da051356 Simplify Debug implementation for Aid
This patch replaces f.write_fmt(format_args!(...)) with write!(f, ...)
and uses named parameters where possible to fix a clippy lint.
2026-04-17 11:44:15 +02:00
Sosthène Guédon 147e20e3e5 Prepare release 0.2.0 v0.2.0 2025-09-25 10:43:22 +02:00
Sosthène Guédon 4eb8ac14ba Update to heapless 0.9 and heapless-bytes 0.5 2025-09-25 10:43:22 +02:00
Sosthène Guédon 1c7930bbd2 Add trusted publishing 2025-09-25 10:35:31 +02:00
Sosthène Guédon 11a6a06b03 Prepare release 0.1.4 v0.1.4 2025-03-04 11:43:28 +01:00
Sosthène Guédon 5109c0db85 Make header length calculation non generic 2025-03-04 11:38:08 +01:00
Sosthène Guédon 31fc7cb369 Add CI workflows 2025-03-04 11:17:00 +01:00
Sosthène Guédon 005acc035b Fix clippy warnings 2025-03-04 10:46:59 +01:00
Sosthène Guédon 8745dab289 Restore AID debug behaviour 2025-03-04 10:20:37 +01:00
Alexander Walter 4570c5c58d chore: remove delog crate 2025-03-04 10:20:37 +01:00
Alexander Walter cfaf1c90d9 feat: delog and defmt features 2025-03-04 10:20:37 +01:00
Sosthène Guédon 6d4002ddf0 Fix heapless-byte cfg 2025-02-28 10:40:45 +01:00