Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
73 lines (60 loc) · 1.57 KB
/
Copy pathCargo.toml
File metadata and controls
73 lines (60 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[package]
name = "beanfmt"
version = "0.12.0"
edition = "2024"
description = "A fast beancount file formatter with CJK support"
license = "MIT"
repository = "https://github.com/Xm798/beanfmt"
homepage = "https://github.com/Xm798/beanfmt"
readme = "README.md"
keywords = ["beancount", "formatter", "cjk", "accounting"]
categories = ["command-line-utilities", "text-processing"]
[package.metadata.wasm-pack.profile.release]
# Disabled: bundled wasm-opt lacks bulk-memory support required by Rust 2024 edition.
# Re-enable after upgrading wasm-pack or installing system binaryen.
wasm-opt = false
[lib]
name = "beanfmt"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "beanfmt"
path = "src/cli/main.rs"
required-features = ["cli"]
[features]
default = ["cli"]
file-config = ["dep:serde", "dep:toml"]
cli = ["file-config", "dep:clap", "dep:glob"]
wasm = ["dep:wasm-bindgen"]
python = ["file-config", "dep:pyo3", "dep:glob"]
[dependencies]
regex = { version = "1", default-features = false, features = ["std", "unicode-perl", "unicode-gencat"] }
unicode-width = "0.2"
[dependencies.clap]
version = "4"
features = ["derive"]
optional = true
[dependencies.glob]
version = "0.3"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.toml]
version = "0.9"
optional = true
[dependencies.pyo3]
version = "0.24"
optional = true
features = ["extension-module", "abi3-py39"]
[dev-dependencies]
tempfile = "3"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true