Skip to content

Commit

Permalink
feat: add chrome and edge profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
DaRacci committed Mar 1, 2024
1 parent dfdb109 commit 48541c6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
6 changes: 6 additions & 0 deletions crates/cleaner/src/cleaners/impls/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ impl CleanerInternal for BrowserCleaner {
let prefix = "AppData/Local/";

vec![
// Internet Explorer
Location::Sub(&USERS, format!("{prefix}Microsoft/Windows/INetCache/IE/*")),
// Edge
Location::Sub(&USERS, format!("{prefix}Microsoft/Edge/User Data/Default/Cache/*")),
Location::Sub(&USERS, format!("{prefix}Microsoft/Edge/User Data/Profile*/Cache/*")),
// Chrome
Location::Sub(&USERS, format!("{prefix}Google/Chrome/User Data/Default/Cache/*")),
Location::Sub(&USERS, format!("{prefix}Google/Chrome/User Data/Profile*/Cache/*")),
// Firefox
Location::Sub(
&USERS,
format!("{prefix}Mozilla/Firefox/Profiles/*.default-release/cache2/*"),
Expand Down
33 changes: 17 additions & 16 deletions crates/lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023-2024. James Draycott <[email protected]>
* Copyright (C) 2023-2024. James Draycott [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -10,29 +10,30 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/

#![feature(lazy_cell)]
#![feature(const_for)]
#![feature(const_option)]
#![feature(auto_traits)]
#![feature(negative_impls)]
#![feature(associated_type_defaults)]
#![feature(trait_alias)]
#![feature(trivial_bounds)]
#![feature(stmt_expr_attributes)]
#![feature(async_closure)]
#![feature(auto_traits)]
#![feature(cfg_match)]
#![feature(const_for)]
#![feature(const_format_args)]
#![feature(const_option)]
#![feature(core_intrinsics)]
#![feature(fn_traits)]
#![feature(impl_trait_in_assoc_type)]
#![feature(type_alias_impl_trait)]
#![feature(lazy_cell)]
#![feature(let_chains)]
#![feature(try_trait_v2)]
#![feature(core_intrinsics)]
#![feature(negative_impls)]
#![feature(result_flattening)]
#![feature(async_closure)]
#![feature(fn_traits)]
#![feature(stmt_expr_attributes)]
#![feature(trait_alias)]
#![feature(trivial_bounds)]
#![feature(try_trait_v2)]
#![feature(type_alias_impl_trait)]
#![allow(async_fn_in_trait)]

pub mod cli;
pub mod fs;
Expand Down
10 changes: 5 additions & 5 deletions crates/macros/src/enums/common_fields.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Copyright (C) 2023 James Draycott <[email protected]>
* Copyright (C) 2024. James Draycott [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* along with this program. If not, see https://www.gnu.org/licenses/.
*/

use proc_macro2::{Ident, TokenStream};
Expand All @@ -27,7 +27,7 @@ pub fn common_fields(input: DeriveInput) -> TokenStream {
ref other => return crate::error_input::<DataEnum, _>(input.span(), other),
};

// Extract the common field names and types from the enum variants
// Extract the common field names and types from the enum variants.
if variants.is_empty() {
return crate::error(input.span(), "Enum has no variants");
}
Expand Down
7 changes: 3 additions & 4 deletions crates/macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023-2024. James Draycott <[email protected]>
* Copyright (C) 2023-2024. James Draycott [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -10,8 +10,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see https://www.gnu.org/licenses/.
*/

#![feature(proc_macro_diagnostic)]
Expand All @@ -27,7 +27,6 @@ use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
use std::any::{type_name, type_name_of_val};
use syn::parse::Parser;
use syn::spanned::Spanned;
use syn::{parse_macro_input, Data, DeriveInput, Ident, Path, TypePath};

Expand Down

0 comments on commit 48541c6

Please sign in to comment.