Skip to content

Commit 9b79468

Browse files
Update no-std-io2 to 0.9.0 (#529)
* Update no-std-io2 to 0.9.0 See https://github.com/wcampbell0x2a/no-std-io2/blob/main/CHANGELOG.md#v090---2025-01-04 * Update MSRV to 1.81 * fix: no std cleanup --------- Co-authored-by: Emmanuel Thompson <[email protected]>
1 parent af4ac5b commit 9b79468

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
matrix:
3333
toolchain:
3434
# msrv
35-
- 1.71
35+
- 1.81
3636

3737
steps:
3838
- uses: actions/checkout@v4

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["deku", "bits", "serialization", "deserialization", "struct"]
99
categories = ["encoding", "parsing", "no-std"]
1010
description = "bit level serialization/deserialization proc-macro for structs"
1111
readme = "README.md"
12-
rust-version = "1.71"
12+
rust-version = "1.81"
1313

1414
[lib]
1515
bench = false
@@ -32,7 +32,7 @@ bits = ["dep:bitvec", "deku_derive/bits"]
3232
deku_derive = { version = "^0.18.1", path = "deku-derive", default-features = false}
3333
bitvec = { version = "1.0.1", default-features = false, optional = true }
3434
log = { version = "0.4.22", optional = true }
35-
no_std_io = { version = "0.8.0", default-features = false, features = ["alloc"], package = "no_std_io2" }
35+
no_std_io = { version = "0.9.0", default-features = false, features = ["alloc"], package = "no_std_io2" }
3636
rustversion = "1.0.17"
3737

3838
[dev-dependencies]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Avoid the requirement of writing redundant, error-prone parsing and writing code
1717
for binary structs or network headers
1818

1919
## Usage
20-
*Compiler support: requires rustc 1.71+*
20+
*Compiler support: requires rustc 1.81+*
2121

2222
```toml
2323
[dependencies]

deku-derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
77
repository = "https://github.com/sharksforarms/deku"
88
description = "bit level serialization/deserialization proc-macro for structs"
99
readme = "../README.md"
10-
rust-version = "1.71"
10+
rust-version = "1.81"
1111

1212
[lib]
1313
proc-macro = true

ensure_no_std/src/bin/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn main() -> ! {
3434
{
3535
use core::mem::MaybeUninit;
3636
const HEAP_SIZE: usize = 1024;
37-
static mut HEAP_MEM: [MaybeUninit<u8>; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE];
37+
static HEAP_MEM: [MaybeUninit<u8>; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE];
3838
unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) }
3939
}
4040

src/noseek.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//! Wrapper type that provides a fake [`Seek`] implementation.
22
33
#[cfg(not(feature = "std"))]
4-
use alloc::{string::String, vec::Vec};
4+
use alloc::vec::Vec;
55

66
use crate::no_std_io::{Read, Result, Seek, SeekFrom, Write};
7+
#[cfg(feature = "std")]
78
use no_std_io::io::ErrorKind;
89

910
/// A wrapper that provides a limited implementation of

src/reader.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bitvec::prelude::*;
77
use no_std_io::io::{ErrorKind, Read, Seek, SeekFrom};
88

99
use crate::{ctx::Order, prelude::NeedSize, DekuError};
10-
use alloc::vec::Vec;
10+
use alloc::{vec, vec::Vec};
1111

1212
#[cfg(feature = "logging")]
1313
use log;

0 commit comments

Comments
 (0)