Update various VM dependencies

This requires a few small changes here and there for new APIs introduced
by some crates. We also replace "dirs" with "dirs-next", as the "dirs"
project has been archived.
parent 5276839b
Pipeline #158794176 passed with stages
in 139 minutes and 28 seconds
This diff is collapsed.
......@@ -20,15 +20,15 @@ test = false
[dependencies]
getopts = "^0.2"
num_cpus = "^1.12"
num_cpus = "^1.13"
parking_lot = "^0.10"
fnv = "^1.0"
time = "^0.2"
num-integer = "^0.1"
float-cmp = "^0.6"
float-cmp = "^0.8"
num-traits = "^0.2"
dirs = "^2.0"
libloading = "^0.5"
dirs-next = "^1.0"
libloading = "^0.6"
libffi = "^0.9"
crossbeam-deque = "^0.7"
crossbeam-channel = "^0.4"
......
......@@ -4,7 +4,7 @@ use std::io;
/// Returns the path to the home directory.
pub fn home() -> Option<String> {
dirs::home_dir().map(|path| path.to_string_lossy().into_owned())
dirs_next::home_dir().map(|path| path.to_string_lossy().into_owned())
}
/// Returns the path to the temporary directory.
......
......@@ -49,7 +49,6 @@
//! sym.write_as(kind, val);
//!
use crate::arc_without_weak::ArcWithoutWeak;
use crate::error_messages::from_io_error;
use crate::object_pointer::ObjectPointer;
use crate::object_value::{self, ObjectValue};
use crate::process::RcProcess;
......@@ -472,7 +471,7 @@ impl Library {
self.inner
.get(name.as_bytes())
.map(|sym: libloading::Symbol<RawPointer>| Pointer::new(*sym))
.map_err(|err| from_io_error(&err))
.map_err(|err| err.to_string())
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment