[package]
edition = "2024"
name = "prefs"
version = "0.1.2"
authors = ["Mikhael Khrustik <misha@myrt.co>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe macOS preferences library"
homepage = "https://github.com/mishamyrt/prefs"
documentation = "https://github.com/mishamyrt/prefs"
readme = "README.md"
license = "MIT"
repository = "https://github.com/mishamyrt/prefs"
[features]
default = []
derive = ["dep:prefs-derive"]
[lib]
name = "prefs"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "derive"
path = "examples/derive.rs"
required-features = ["derive"]
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[dependencies.prefs-derive]
version = "0.1.2"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[lints.clippy]
char_lit_as_u8 = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
get_unwrap = "warn"
implicit_hasher = "allow"
large_stack_arrays = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_raw_string_hashes = "allow"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
unused_peekable = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -2
[lints.rust]
unreachable_pub = "forbid"