Skip to content

Commit

Permalink
chore(deps): update to latest rust nightly (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoparis authored Jun 13, 2024
1 parent 1a3246b commit 3cdbe41
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"rcore-fs",
"rcore-fs-sfs",
Expand Down
2 changes: 1 addition & 1 deletion rcore-fs-fuse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ libc = "0.2"
log = "0.4"
fuse = { version = "0.3", optional = true }
structopt = "0.3"
env_logger = "0.9"
env_logger = "0.11"
git-version = "0.3"
rcore-fs = { path = "../rcore-fs", features = ["std"] }
rcore-fs-sfs = { path = "../rcore-fs-sfs" }
Expand Down
2 changes: 1 addition & 1 deletion rcore-fs-hostfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"

[dependencies]
rcore-fs = { path = "../rcore-fs", features = ["std"] }
nix = "0.23"
nix = { version = "0.29", features = ["fs"] }
log = "0.4"
2 changes: 1 addition & 1 deletion rcore-fs-sefs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rcore-fs = { path = "../rcore-fs" }
static_assertions = "1.1"
spin = "0.9"
log = "0.4"
bitvec = { version = "0.22", default-features = false, features = ["alloc"] }
bitvec = { version = "1.0", default-features = false, features = ["alloc"] }

[features]
std = ["rcore-fs/std"]
10 changes: 5 additions & 5 deletions rcore-fs-sefs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ pub struct SEFS {
/// on-disk superblock
super_block: RwLock<Dirty<SuperBlock>>,
/// blocks in use are marked 0
free_map: RwLock<Dirty<BitVec<Lsb0, u8>>>,
free_map: RwLock<Dirty<BitVec<u8, Lsb0>>>,
/// inode list
inodes: RwLock<BTreeMap<INodeId, Weak<INodeImpl>>>,
/// device
Expand Down Expand Up @@ -491,7 +491,7 @@ impl SEFS {
let block_id = Self::get_freemap_block_id_of_group(i);
meta_file.read_block(
block_id,
&mut free_map.as_mut_raw_slice()[BLKSIZE * i..BLKSIZE * (i + 1)],
&mut free_map.as_raw_mut_slice()[BLKSIZE * i..BLKSIZE * (i + 1)],
)?;
}

Expand Down Expand Up @@ -725,7 +725,7 @@ trait BitsetAlloc {
fn alloc(&mut self) -> Option<usize>;
}

impl BitsetAlloc for BitVec<Lsb0, u8> {
impl BitsetAlloc for BitVec<u8, Lsb0> {
fn alloc(&mut self) -> Option<usize> {
// TODO: more efficient
let id = (0..self.len()).find(|&i| self[i]);
Expand All @@ -736,12 +736,12 @@ impl BitsetAlloc for BitVec<Lsb0, u8> {
}
}

impl AsBuf for BitVec<Lsb0, u8> {
impl AsBuf for BitVec<u8, Lsb0> {
fn as_buf(&self) -> &[u8] {
self.as_raw_slice()
}
fn as_buf_mut(&mut self) -> &mut [u8] {
self.as_mut_raw_slice()
self.as_raw_mut_slice()
}
}

Expand Down
4 changes: 2 additions & 2 deletions rcore-fs-sfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rcore-fs = { path = "../rcore-fs" }
static_assertions = "1.1"
spin = "0.9"
log = "0.4"
bitvec = { version = "0.22", default-features = false, features = ["alloc"] }
bitvec = { version = "1.0", default-features = false, features = ["alloc"] }

[dev-dependencies]
tempfile = "3.2"
tempfile = "3.10"
8 changes: 4 additions & 4 deletions rcore-fs-sfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ pub struct SimpleFileSystem {
/// on-disk superblock
super_block: RwLock<Dirty<SuperBlock>>,
/// blocks in use are mared 0
free_map: RwLock<Dirty<BitVec<Lsb0, u8>>>,
free_map: RwLock<Dirty<BitVec<u8, Lsb0>>>,
/// inode list
inodes: RwLock<BTreeMap<INodeId, Weak<INodeImpl>>>,
/// device
Expand Down Expand Up @@ -1007,7 +1007,7 @@ trait BitsetAlloc {
fn alloc(&mut self) -> Option<usize>;
}

impl BitsetAlloc for BitVec<Lsb0, u8> {
impl BitsetAlloc for BitVec<u8, Lsb0> {
fn alloc(&mut self) -> Option<usize> {
// TODO: more efficient
let id = (0..self.len()).find(|&i| self[i]);
Expand All @@ -1018,12 +1018,12 @@ impl BitsetAlloc for BitVec<Lsb0, u8> {
}
}

impl AsBuf for BitVec<Lsb0, u8> {
impl AsBuf for BitVec<u8, Lsb0> {
fn as_buf(&self) -> &[u8] {
self.as_raw_slice()
}
fn as_buf_mut(&mut self) -> &mut [u8] {
self.as_mut_raw_slice()
self.as_raw_mut_slice()
}
}

Expand Down
2 changes: 1 addition & 1 deletion rcore-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spin = "0.9"
libc = { version = "0.2", optional = true }

[dev-dependencies]
tempfile = "3.2"
tempfile = "3.10"

[target.'cfg(windows)'.dependencies]
filetime = "0.2"
Expand Down

0 comments on commit 3cdbe41

Please sign in to comment.