-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (79 loc) · 3.1 KB
/
Cargo.toml
File metadata and controls
87 lines (79 loc) · 3.1 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
[package]
name = "tokenusage"
version = "1.5.2"
edition = "2024"
description = "Fast Rust CLI/TUI/GUI token usage tracker for Codex, Claude Code, and Antigravity usage."
license = "MIT"
readme = "README.md"
documentation = "https://docs.rs/tokenusage"
repository = "https://github.com/hanbu97/tokenusage"
homepage = "https://tokenusage.org"
keywords = ["codex-usage", "claude-code-usage", "token-usage-tracker", "antigravity", "ai-coding-cost"]
categories = ["command-line-utilities", "development-tools"]
rust-version = "1.87"
[package.metadata.docs.rs]
# Build on docs.rs with no features so the library API is documented.
# Feature-gated CLI items are hidden from docs.
no-default-features = true
[package.metadata.binstall.overrides."x86_64-unknown-linux-gnu"]
pkg-url = "{ repo }/releases/download/v{ version }/tu-v{ version }-{ target }.tar.gz"
bin-dir = "tu-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides."x86_64-apple-darwin"]
pkg-url = "{ repo }/releases/download/v{ version }/tu-v{ version }-{ target }.tar.gz"
bin-dir = "tu-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides."aarch64-apple-darwin"]
pkg-url = "{ repo }/releases/download/v{ version }/tu-v{ version }-{ target }.tar.gz"
bin-dir = "tu-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides."x86_64-pc-windows-msvc"]
pkg-url = "{ repo }/releases/download/v{ version }/tu-v{ version }-{ target }.zip"
bin-dir = "tu-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "zip"
[features]
default = ["cli"]
cli = [
"dep:clap",
"dep:comfy-table",
"dep:crossterm",
"dep:ratatui",
"dep:terminal_size",
"dep:iced",
"dep:notify",
"dep:ab_glyph",
"dep:font8x8",
"dep:image",
"dep:plotters",
"dep:resvg",
]
[[bin]]
name = "tu"
path = "src/bin/tu.rs"
required-features = ["cli"]
[dependencies]
ab_glyph = { version = "0.2", optional = true }
anyhow = "1.0"
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = "0.10"
clap = { version = "4.5", features = ["derive"], optional = true }
comfy-table = { version = "7.1", optional = true }
crossterm = { version = "0.29", optional = true }
crossbeam-channel = "0.5"
dirs = "6.0"
font8x8 = { version = "0.3", optional = true }
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"], optional = true }
iced = { version = "0.13", default-features = false, features = ["tiny-skia", "tokio", "canvas"], optional = true }
ignore = "0.4"
notify = { version = "8.2", optional = true }
portable-pty = "0.9"
plotters = { version = "0.3", default-features = false, features = ["bitmap_backend"], optional = true }
ratatui = { version = "0.29", optional = true }
rayon = "1.10"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
resvg = { version = "0.45", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.48", features = ["fs", "macros", "rt-multi-thread"] }
terminal_size = { version = "0.4", optional = true }
cfg-if = "1.0.4"