# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "space_finder"
version = "1.0.0"
authors = ["Rafał Mikrut <mikrutrafal@protonmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tool to find and visualize the largest files and folders on your disk"
homepage = "https://github.com/qarmin/space_finder"
readme = "README.md"
license = "MIT"
repository = "https://github.com/qarmin/space_finder"

[lib]
name = "space_finder"
path = "src/lib.rs"

[[bin]]
name = "space_finder"
path = "src/main.rs"

[[test]]
name = "scan_and_render"
path = "tests/scan_and_render.rs"

[dependencies.dirs]
version = "6.0.0"

[dependencies.handsome_logger]
version = "0.9.2"

[dependencies.i18n-embed]
version = "0.16"
features = [
    "fluent-system",
    "desktop-requester",
]

[dependencies.i18n-embed-fl]
version = "0.10"

[dependencies.image]
version = "0.25"
default-features = false

[dependencies.infer]
version = "0.19"

[dependencies.log]
version = "0.4"

[dependencies.open]
version = "5.3"

[dependencies.rayon]
version = "1.10"

[dependencies.rfd]
version = "0.17"
features = ["xdg-portal"]
default-features = false

[dependencies.rust-embed]
version = "8.5"
features = ["debug-embed"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.slint]
version = "1.15.1"
features = [
    "std",
    "backend-winit",
    "renderer-winit-femtovg",
    "compat-1-2",
]
default-features = false

[dev-dependencies.tempfile]
version = "3.13"

[build-dependencies.slint-build]
version = "1.15.1"

[lints.clippy]
allow_attributes = "warn"
assertions_on_result_states = "warn"
bool_to_int_with_if = "warn"
branches_sharing_code = "warn"
collapsible_else_if = "allow"
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
doc_broken_link = "warn"
empty_enum_variants_with_brackets = "warn"
enum_glob_use = "warn"
enum_variant_names = "allow"
equatable_if_let = "warn"
error_impl_error = "allow"
expl_impl_clone_on_copy = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp = "warn"
from_iter_instead_of_collect = "warn"
get_first = "allow"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
index_refutable_slice = "warn"
indexing_slicing = "allow"
invalid_upcast_comparisons = "warn"
ip_constant = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_on_empty_collections = "warn"
iter_with_drain = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_variant_and = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
mut_mut = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_strings = "warn"
non_std_lazy_statics = "warn"
nonstandard_macro_braces = "warn"
option_as_ref_cloned = "warn"
path_buf_push_overwrite = "warn"
pathbuf_init_then_push = "warn"
print_stderr = "warn"
print_stdout = "warn"
pub_underscore_fields = "warn"
question_mark = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
redundant_clone = "warn"
redundant_else = "warn"
ref_binding_to_reference = "warn"
ref_option_ref = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
set_contains_or_insert = "warn"
stable_sort_primitive = "warn"
string_add_assign = "warn"
string_slice = "warn"
suspicious_operation_groupings = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "allow"
too_many_arguments = "allow"
trait_duplication_in_bounds = "warn"
trivial_regex = "warn"
trivially_copy_pass_by_ref = "warn"
type_complexity = "allow"
type_repetition_in_bounds = "warn"
unimplemented = "allow"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnecessary_semicolon = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unreachable = "allow"
unused_async = "warn"
unused_result_ok = "warn"
unused_rounding = "warn"
unused_self = "warn"
unwrap_used = "allow"
use_self = "warn"
used_underscore_binding = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
wildcard_imports = "warn"

[profile.rdebug]
debug = 2
inherits = "release"
strip = "none"
