From 525e4c092fe18adc836c49452dacb37d81164ac3 Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Thu, 16 Mar 2023 14:59:12 +0100 Subject: [PATCH 1/2] Windows: Allow repos to start with drive letter --- src/backend/choose.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/choose.rs b/src/backend/choose.rs index ff174bf..5a67227 100644 --- a/src/backend/choose.rs +++ b/src/backend/choose.rs @@ -16,6 +16,8 @@ use ChooseBackend::{Local, Rclone, Rest}; impl ChooseBackend { pub fn from_url(url: &str) -> Result { Ok(match url.split_once(':') { + #[cfg(windows)] + Some((drive, _)) if drive.len() == 1 => Local(LocalBackend::new(url)?), Some(("rclone", path)) => Rclone(RcloneBackend::new(path)?), Some(("rest", path)) => Rest(RestBackend::new(path)?), Some(("local", path)) => Local(LocalBackend::new(path)?), From c21f6545e254ce63c62f5593de660cd7131fbe6e Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Thu, 16 Mar 2023 14:59:18 +0100 Subject: [PATCH 2/2] Add Windows to changelog --- changelog/new.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog/new.txt b/changelog/new.txt index 8a294cf..d3cc206 100644 --- a/changelog/new.txt +++ b/changelog/new.txt @@ -7,6 +7,7 @@ Breaking changes: Bugs fixed: New features: +- Experimental windows support has been added. - New command dump has been added. - New command merge has been added. - Extra or wrong fields in the config file now lead to rustic complaining and aborting.