-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (60 loc) · 1.78 KB
/
Cargo.toml
File metadata and controls
70 lines (60 loc) · 1.78 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
[package]
name = "iocraft-node"
version = "0.1.0"
edition = "2021"
description = "Node.js bindings for iocraft TUI library"
license = "MIT"
publish = false
[lib]
crate-type = ["cdylib"]
[dependencies]
crossterm = "0.29"
iocraft = { path = "upstream/iocraft/packages/iocraft" }
itoa = "1"
mimalloc = "0.1"
napi = { version = "3", default-features = false, features = [
"napi9",
"tokio_rt",
"serde-json",
] }
napi-derive = "3"
parking_lot = "0.12"
phf = { version = "0.11", features = ["macros"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
smallvec = { version = "1", features = ["union", "const_generics"] }
thiserror = "2"
tokio = { version = "1", features = [
"rt-multi-thread",
"macros",
"sync",
"time",
] }
[build-dependencies]
napi-build = "2"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "parsing"
harness = false
[[bench]]
name = "rendering"
harness = false
[profile.release]
lto = "fat" # Full LTO for maximum performance (enables cross-crate inlining)
codegen-units = 1 # Single codegen unit for better optimization (enables more aggressive inlining)
opt-level = 3 # Maximum optimization level
panic = "abort" # Smaller binary, slightly faster (no unwinding overhead)
strip = true # Strip symbols for smaller binary size
overflow-checks = false # Disable overflow checks in release (performance critical)
# BARE-METAL OPTIMIZATIONS
# These flags push the compiler to absolute maximum performance
# Note: Some optimizations are CPU-specific and may not work on all platforms
# Optimize dependencies even in dev builds for better interactive performance
[profile.dev.package."*"]
opt-level = 2
# PERFORMANCE PROFILE: For maximum performance benchmarking
[profile.bench]
inherits = "release"
lto = "fat"
codegen-units = 1