Skip to content

Commit

Permalink
Fix no_std build and add that to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFinck committed Nov 3, 2022
1 parent b0058b9 commit 9348d72
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- uses: actions/checkout@v2
- name: Clippy
run: cargo clippy --verbose
- name: Build no_std
run: cargo build --verbose --no-default-features
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use core::cmp::Ordering;
use core::num::NonZeroU64;

use alloc::vec;
use binread::io::{Read, Seek, SeekFrom};
use bitflags::bitflags;
use byteorder::{ByteOrder, LittleEndian};
Expand Down
1 change: 1 addition & 0 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use core::cmp::Ordering;
use core::marker::PhantomData;

use alloc::vec;
use alloc::vec::Vec;
use binread::io::{Read, Seek};

Expand Down
1 change: 1 addition & 0 deletions src/index_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use core::marker::PhantomData;
use core::mem;
use core::ops::Range;

use alloc::vec::Vec;
use binread::io::{Read, Seek};
use bitflags::bitflags;
use byteorder::{ByteOrder, LittleEndian};
Expand Down
1 change: 1 addition & 0 deletions src/index_record.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2021-2022 Colin Finck <colin@reactos.org>
// SPDX-License-Identifier: MIT OR Apache-2.0

use alloc::vec;
use binread::io::{Read, Seek};
use byteorder::{ByteOrder, LittleEndian};
use core::ops::Range;
Expand Down
2 changes: 2 additions & 0 deletions src/upcase_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

use core::mem;

use alloc::vec;
use alloc::vec::Vec;
use binread::io::{Read, Seek};

use crate::attribute::NtfsAttributeType;
Expand Down

0 comments on commit 9348d72

Please sign in to comment.