[[package]]
name = "dirs"
-version = "2.0.2"
+version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"
+checksum = "142995ed02755914747cc6ca76fc7e4583cd18578746716d0508ea6ed558b9ff"
dependencies = [
- "cfg-if 0.1.10",
"dirs-sys",
]
[[package]]
-name = "dirs"
-version = "3.0.1"
+name = "dirs-next"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "142995ed02755914747cc6ca76fc7e4583cd18578746716d0508ea6ed558b9ff"
+checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
dependencies = [
- "dirs-sys",
+ "cfg-if 1.0.0",
+ "dirs-sys-next",
]
[[package]]
"winapi 0.3.8",
]
+[[package]]
+name = "dirs-sys-next"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "99de365f605554ae33f115102a02057d4fc18b01f3284d6870be0938743cfe7d"
+dependencies = [
+ "libc",
+ "redox_users",
+ "winapi 0.3.8",
+]
+
[[package]]
name = "divrem"
version = "0.1.0"
dependencies = [
"bitflags",
"cfg-if 1.0.0",
- "dirs 3.0.1",
+ "dirs",
"fs2",
"libc",
"log",
"chrono",
"cpu-time",
"crossterm",
- "dirs 2.0.2",
+ "dirs-next",
"divrem",
"downcast",
"git-version",
}
fn compile_scryerrc(&mut self) {
- let mut path = match dirs::home_dir() {
+ let mut path = match dirs_next::home_dir() {
Some(path) => path,
None => return,
};
#[inline]
pub fn new(pending_input: String) -> Self {
let mut rl = Editor::<()>::new();
- if let Some(mut path) = dirs::home_dir() {
+ if let Some(mut path) = dirs_next::home_dir() {
path.push(HISTORY_FILE);
if path.exists() {
if rl.load_history(&path).is_err() {
}
}
}
-
+
rl.bind_sequence(KeyEvent::from('\t'), Cmd::Insert(1, "\t".to_string()));
ReadlineStream { rl, pending_input: Cursor::new(pending_input) }
}
}
fn save_history(&mut self) {
- if let Some(mut path) = dirs::home_dir() {
+ if let Some(mut path) = dirs_next::home_dir() {
path.push(HISTORY_FILE);
if path.exists() {
if self.rl.append_history(&path).is_err() {