beanfmt 0.6.3

A fast beancount file formatter with CJK support
Documentation
# 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 = "beanfmt"
version = "0.6.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast beancount file formatter with CJK support"
homepage = "https://github.com/Xm798/beanfmt"
readme = "README.md"
keywords = [
    "beancount",
    "formatter",
    "cjk",
    "accounting",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/Xm798/beanfmt"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
cli = [
    "file-config",
    "dep:clap",
    "dep:glob",
]
default = ["cli"]
file-config = [
    "dep:serde",
    "dep:toml",
]
python = [
    "file-config",
    "dep:pyo3",
    "dep:glob",
]
wasm = ["dep:wasm-bindgen"]

[lib]
name = "beanfmt"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "beanfmt"
path = "src/cli/main.rs"
required-features = ["cli"]

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

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

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

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

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

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.glob]
version = "0.3"
optional = true

[dependencies.pyo3]
version = "0.24"
features = [
    "extension-module",
    "abi3-py39",
]
optional = true

[dependencies.regex]
version = "1"
features = [
    "std",
    "unicode-perl",
    "unicode-gencat",
]
default-features = false

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

[dependencies.toml]
version = "0.9"
optional = true

[dependencies.unicode-width]
version = "0.2"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

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

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true