linreg-core 0.2.2

Lightweight linear regression (OLS, Ridge, Lasso) with diagnostic tests. Pure Rust - no external math dependencies.
Documentation
# Rust Formatting Configuration

# https://rust-lang.github.io/rustfmt/

#

# Run: cargo fmt

# Check only: cargo fmt -- --check



# =============================================================================

# STABLE OPTIONS (work with stable Rust)

# =============================================================================



# Edition (should match Cargo.toml)

edition = "2021"



# Line width - 100 is standard, balances readability with screen space

max_width = 100



# Indentation

tab_spaces = 4

hard_tabs = false



# Imports

reorder_imports = true

reorder_modules = true



# Braces

brace_style = "SameLineWhere"



# Match expressions

match_block_trailing_comma = true

match_arm_blocks = true



# Struct literals

struct_lit_single_line = true

empty_item_single_line = true



# Shorthand syntax (enabled by default, explicit for clarity)

use_field_init_shorthand = true

use_try_shorthand = true



# Line endings - Auto detects from existing files

newline_style = "Auto"



# =============================================================================

# UNSTABLE OPTIONS (require nightly: rustup run nightly cargo fmt)

# Uncomment these if using nightly rustfmt

# =============================================================================



# # Import grouping and granularity

# imports_granularity = "Module"

# group_imports = "StdExternalCrate"



# # Doc comment formatting (important for crates with examples)

# format_code_in_doc_comments = true



# # Function signatures

# fn_params_layout = "Tall"

# fn_single_line = false



# # Comment handling

# wrap_comments = false

# normalize_comments = false



# # Macro formatting

# format_macro_matchers = true

# format_macro_bodies = true