autozig 0.1.2

Safe autogenerated interop between Rust and Zig
Documentation
# Rustfmt Configuration for AutoZig

# Edition
edition = "2021"

# Maximum line width
max_width = 100

# Indentation
tab_spaces = 4
hard_tabs = false

# Imports
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
imports_layout = "Vertical"

# Function formatting
fn_args_layout = "Tall"
fn_call_width = 80

# Struct formatting
struct_lit_width = 40
struct_variant_width = 40

# Array and slice formatting
array_width = 80

# Chain formatting
chain_width = 60
reorder_impl_items = true

# Comments
comment_width = 80
wrap_comments = true
normalize_comments = true
normalize_doc_attributes = true

# Control flow
control_brace_style = "AlwaysSameLine"
match_block_trailing_comma = true

# Trailing comma
trailing_comma = "Vertical"
trailing_semicolon = true

# Newlines
newline_style = "Unix"
blank_lines_upper_bound = 2
blank_lines_lower_bound = 0

# Space usage
space_after_colon = true
space_before_colon = false
spaces_around_ranges = false

# Use field init shorthand
use_field_init_shorthand = true

# Use try shorthand
use_try_shorthand = true

# Format code in doc comments
format_code_in_doc_comments = true

# Format strings
format_strings = true

# Misc
remove_nested_parens = true
reorder_imports = true