[package]
edition = "2024"
name = "fack-core"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Foundational no_std APIs for the fack workspace"
homepage = "https://github.com/wafkse/fack"
documentation = "https://docs.rs/fack-core"
readme = "README.md"
keywords = [
"error",
"no-std",
"core",
]
categories = [
"no-std",
"rust-patterns",
]
license = "GPL-3.0"
repository = "https://github.com/wafkse/fack"
[lib]
name = "fack_core"
path = "src/lib.rs"
[lints.clippy]
absolute_paths = "deny"
alloc_instead_of_core = "deny"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "deny"
as_underscore = "deny"
cargo_common_metadata = "deny"
cast_lossless = "deny"
cast_possible_truncation = "allow"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
cfg_not_test = "deny"
char_lit_as_u8 = "deny"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
decimal_literal_representation = "deny"
deref_by_slicing = "deny"
else_if_without_else = "deny"
empty_drop = "deny"
empty_enum_variants_with_brackets = "deny"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
fn_to_numeric_cast = "deny"
fn_to_numeric_cast_with_truncation = "deny"
get_unwrap = "deny"
if_then_some_else_none = "deny"
indexing_slicing = "deny"
inline_asm_x86_intel_syntax = "deny"
inline_trait_bounds = "deny"
let_underscore_must_use = "deny"
let_underscore_untyped = "deny"
lossy_float_literal = "deny"
map_err_ignore = "deny"
map_with_unused_argument_over_ranges = "deny"
match_bool = "allow"
match_ref_pats = "allow"
mem_forget = "deny"
missing_assert_message = "deny"
missing_asserts_for_indexing = "deny"
missing_docs_in_private_items = "deny"
missing_safety_doc = "deny"
mixed_read_write_in_expression = "deny"
mod_module_files = "deny"
must_use_candidate = "allow"
needless_borrowed_reference = "allow"
needless_raw_strings = "deny"
non_zero_suggestions = "deny"
panic = "deny"
panic_in_result_fn = "deny"
pattern_type_mismatch = "deny"
ptr_as_ptr = "deny"
redundant_test_prefix = "deny"
redundant_type_annotations = "deny"
single_match = "allow"
single_match_else = "allow"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
str_to_string = "deny"
string_lit_chars_any = "deny"
suspicious_xor_used_as_pow = "deny"
tests_outside_test_module = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_cast = "deny"
unneeded_field_pattern = "deny"
unseparated_literal_suffix = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.complexity]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
invalid_reference_casting = "forbid"
unsafe_code = "deny"
unstable_features = "forbid"
[lints.rustdoc]
all = "deny"