Revert "add more generic backend stuff"

This reverts commit 265d67089b.
This commit is contained in:
timeshifter
2023-01-06 11:50:57 +01:00
parent e873cb979c
commit 0dcf3822eb
3 changed files with 17 additions and 57 deletions
+3 -11
View File
@@ -6,17 +6,9 @@ use crate::Package;
pub struct Rust;
impl Backend for Rust {
fn get_binary() -> Binary {
"cargo"
}
fn get_switches_install() -> Switches {
&["install"]
}
fn get_switches_remove() -> Switches {
&["uninstall"]
}
const BINARY: Binary = "cargo";
const SWITCHES_INSTALL: Switches = &["install"];
const SWITCHES_REMOVE: Switches = &["uninstall"];
fn get_all_installed_packages() -> HashSet<Package> {
extract_packages_names(&run_cargo_install_list())