-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathCargo.toml
More file actions
127 lines (118 loc) 路 2.88 KB
/
Copy pathCargo.toml
File metadata and controls
127 lines (118 loc) 路 2.88 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[package]
name = "transity"
version = "0.8.0"
edition = "2021"
description = "The plain text accounting tool of the future"
license = "AGPL-3.0-or-later"
repository = "https://github.com/ad-si/Transity"
homepage = "https://github.com/ad-si/Transity"
keywords = ["accounting", "finance", "ledger", "plain-text", "cli"]
categories = ["command-line-utilities", "finance"]
exclude = [
"docs_src/",
"examples/",
"images/",
"purescript/",
"recordings/",
"scripts/",
"webapp/",
".github/",
".gitpod.yml",
".pursfmt.yaml",
"flake.lock",
"flake.nix",
"eslint.config.js",
"bun.lock",
"package.json",
"oclis.ncl",
"spago.lock",
"spago.yaml",
"ledger2transity.sh",
]
[lib]
name = "transity"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "transity"
path = "src/main.rs"
[features]
default = ["ssr"]
cli = [
"dep:clap",
"dep:rust_xlsxwriter",
]
ssr = [
"cli",
"dep:any_spawner",
"dep:axum",
"dep:tokio",
"dep:leptos",
"dep:leptos_axum",
"dep:leptos_config",
"dep:leptos_router",
"leptos/ssr",
"leptos_router/ssr",
]
hydrate = [
"dep:leptos",
"dep:leptos_router",
"dep:wasm-bindgen",
"dep:console_error_panic_hook",
"leptos/csr",
]
wasm = [
"dep:wasm-bindgen",
"dep:console_error_panic_hook",
]
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.9"
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
num-rational = { version = "0.4", features = ["serde"] }
num-bigint = "0.4"
num-traits = "0.2"
colored = "2"
anyhow = "1"
clap = { version = "4", features = ["derive"], optional = true }
rust_xlsxwriter = { version = "0.80", optional = true }
any_spawner = { version = "0.3", optional = true }
axum = { version = "0.8", optional = true }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
leptos = { version = "0.8", optional = true }
leptos_axum = { version = "0.8", optional = true }
leptos_config = { version = "0.8", optional = true }
leptos_meta = { version = "0.8", optional = true }
leptos_router = { version = "0.8", optional = true }
wasm-bindgen = { version = "=0.2.100", optional = true }
console_error_panic_hook = { version = "0.1", optional = true }
[package.metadata.leptos]
output-name = "transity"
site-root = "target/site"
site-pkg-dir = "pkg"
style-file = "style/main.css"
site-addr = "127.0.0.1:3000"
reload-port = 3001
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false
lib-profile-release = "wasm-release"
[profile.wasm-release]
inherits = "release"
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz", "--enable-bulk-memory", "--enable-nontrapping-float-to-int"]
[dev-dependencies]
insta = { version = "1", features = ["yaml"] }
regex = "1"