We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
defmt
embedded-hal-bus
env_logger
heapless
hex-literal
1 parent 2851be4 commit 5bfef78Copy full SHA for 5bfef78
CHANGELOG.md
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog] and this project adheres to [Semantic
6
7
## [Unreleased]
8
9
+### Changed
10
+
11
+- Updated to `defmt` 1.0.1, `embedded-hal-bus` 0.3.0, `env_logger` 0.11.8, `heapless` 0.9.1, and `hex-literal` 1.0.0.
12
+- Raised the minimum supported Rust version to 1.86.0.
13
14
## [Version 0.9.0] - 2025-06-08
15
16
### Changed
Cargo.toml
@@ -11,22 +11,22 @@ repository = "https://github.com/rust-embedded-community/embedded-sdmmc-rs"
version = "0.9.0"
# Make sure to update the CI too!
-rust-version = "1.76"
+rust-version = "1.86"
[dependencies]
17
byteorder = {version = "1", default-features = false}
18
-defmt = {version = "0.3", optional = true}
+defmt = {version = "1.0.1", optional = true}
19
embedded-hal = "1.0.0"
20
embedded-io = "0.6.1"
21
-heapless = "^0.8"
+heapless = "0.9.1"
22
log = {version = "0.4", default-features = false, optional = true}
23
24
[dev-dependencies]
25
chrono = "0.4"
26
-embedded-hal-bus = "0.2.0"
27
-env_logger = "0.10.0"
+embedded-hal-bus = "0.3.0"
+env_logger = "0.11.8"
28
flate2 = "1.0"
29
-hex-literal = "0.4.1"
+hex-literal = "1.0.0"
30
sha2 = "0.10"
31
32
[features]
src/fat/bpb.rs
@@ -20,7 +20,7 @@ impl<'a> Bpb<'a> {
pub(crate) const FOOTER_VALUE: u16 = 0xAA55;
/// Attempt to parse a Boot Parameter Block from a 512 byte sector.
- pub fn create_from_bytes(data: &[u8; 512]) -> Result<Bpb, &'static str> {
+ pub fn create_from_bytes(data: &[u8; 512]) -> Result<Bpb<'_>, &'static str> {
let mut bpb = Bpb {
data,
fat_type: FatType::Fat16,
src/fat/info.rs
@@ -49,7 +49,7 @@ impl<'a> InfoSector<'a> {
49
const TRAIL_SIG: u32 = 0xAA55_0000;
50
51
/// Try and create a new Info Sector from a block.
52
- pub fn create_from_bytes(data: &[u8; 512]) -> Result<InfoSector, &'static str> {
+ pub fn create_from_bytes(data: &[u8; 512]) -> Result<InfoSector<'_>, &'static str> {
53
let info = InfoSector { data };
54
if info.lead_sig() != Self::LEAD_SIG {
55
return Err("Bad lead signature on InfoSector");
src/fat/ondiskdirentry.rs
@@ -57,7 +57,7 @@ impl<'a> OnDiskDirEntry<'a> {
57
58
/// Create a new on-disk directory entry from a block of 32 bytes read
59
/// from a directory file.
60
- pub fn new(data: &[u8]) -> OnDiskDirEntry {
+ pub fn new(data: &[u8]) -> OnDiskDirEntry<'_> {
61
OnDiskDirEntry { data }
62
}
63
src/filesystem/directory.rs
@@ -58,7 +58,7 @@ impl RawDirectory {
>(
self,
volume_mgr: &VolumeManager<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>,
- ) -> Directory<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>
+ ) -> Directory<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>
where
D: crate::BlockDevice,
64
T: crate::TimeSource,
@@ -113,7 +113,7 @@ where
113
pub fn open_dir<N>(
114
&self,
115
name: N,
116
- ) -> Result<Directory<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, Error<D::Error>>
+ ) -> Result<Directory<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, Error<D::Error>>
117
118
N: ToShortFileName,
119
{
@@ -193,7 +193,7 @@ where
193
194
195
mode: crate::Mode,
196
- ) -> Result<crate::File<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, crate::Error<D::Error>>
+ ) -> Result<crate::File<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, crate::Error<D::Error>>
197
198
N: super::ToShortFileName,
199
src/filesystem/files.rs
@@ -30,7 +30,7 @@ impl RawFile {
pub fn to_file<D, T, const MAX_DIRS: usize, const MAX_FILES: usize, const MAX_VOLUMES: usize>(
33
- ) -> File<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>
+ ) -> File<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>
34
35
36
src/lib.rs
@@ -297,7 +297,7 @@ impl RawVolume {
297
298
299
300
- ) -> Volume<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>
+ ) -> Volume<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>
301
302
303
@@ -346,7 +346,7 @@ where
346
/// use `open_file_in_dir`.
347
pub fn open_root_dir(
348
349
- ) -> Result<crate::Directory<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, Error<D::Error>> {
+ ) -> Result<crate::Directory<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, Error<D::Error>> {
350
let d = self.volume_mgr.open_root_dir(self.raw_volume)?;
351
Ok(d.to_directory(self.volume_mgr))
352
src/volume_mgr.rs
@@ -110,7 +110,7 @@ where
110
pub fn open_volume(
111
112
volume_idx: VolumeIdx,
- ) -> Result<Volume<D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, Error<D::Error>> {
+ ) -> Result<Volume<'_, D, T, MAX_DIRS, MAX_FILES, MAX_VOLUMES>, Error<D::Error>> {
let v = self.open_raw_volume(volume_idx)?;
Ok(v.to_volume(self))
0 commit comments