Fix build on non-Redox
This commit is contained in:
+3
-1
@@ -32,7 +32,6 @@ fatfs = "0.3.0"
|
||||
fscommon = "0.1.1"
|
||||
gpt = "3.0.0"
|
||||
libc = "0.2.70"
|
||||
libredox = "0.1"
|
||||
pkgar = "0.1.17"
|
||||
pkgar-core = "0.1.17"
|
||||
pkgar-keys = "0.1.17"
|
||||
@@ -48,6 +47,9 @@ termion = "4"
|
||||
toml = "0.8"
|
||||
uuid = { version = "1.4", features = ["v4"] }
|
||||
|
||||
[target.'cfg(target_os = "redox")'.dependencies]
|
||||
libredox = "0.1"
|
||||
|
||||
[patch.crates-io]
|
||||
cc-11 = { git = "https://github.com/tea/cc-rs", branch="riscv-abi-arch-fix", package = "cc" }
|
||||
# https://github.com/briansmith/ring/issues/1999
|
||||
|
||||
@@ -684,7 +684,16 @@ where
|
||||
with_redoxfs(disk_redoxfs, disk_option.password_opt, callback)
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "redox"))]
|
||||
pub fn try_fast_install<D: redoxfs::Disk, F: FnMut(u64, u64)>(
|
||||
_fs: &mut redoxfs::FileSystem<D>,
|
||||
_progress: F,
|
||||
) -> Result<bool> {
|
||||
Ok(false)
|
||||
}
|
||||
|
||||
/// Try fast install using live disk memory
|
||||
#[cfg(target_os = "redox")]
|
||||
pub fn try_fast_install<D: redoxfs::Disk, F: FnMut(u64, u64)>(
|
||||
fs: &mut redoxfs::FileSystem<D>,
|
||||
mut progress: F,
|
||||
|
||||
Reference in New Issue
Block a user