-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
113 lines (95 loc) · 3.09 KB
/
Copy pathCargo.toml
File metadata and controls
113 lines (95 loc) · 3.09 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
[package]
name = "titanium"
version = "0.2.0"
edition = "2021"
description = "Titanium Engine — hybrid AI (alpha-beta + guided MCTS)"
license = "GPL-3.0-or-later"
[profile.release]
lto = "fat"
codegen-units = 1
# Release optimizations + full debuginfo for samply / cargo-flamegraph (symbolicated stacks).
[profile.profiling]
inherits = "release"
debug = 2
strip = false
lto = "fat"
codegen-units = 1
[lib]
name = "titanium"
path = "src/lib.rs"
crate-type = ["lib", "cdylib"]
[[bin]]
name = "titanium"
path = "src/main.rs"
required-features = ["parallel"]
[[bin]]
name = "movegen-o1-gen"
path = "src/bin/movegen_o1_gen.rs"
[[bin]]
name = "search_bench"
path = "src/bin/search_bench.rs"
required-features = ["parallel"]
[features]
default = ["parallel"]
# Search measurement, TT-hit profiling, and phase timers are compiled only with
# --features bench-instrument. Default cargo build --release contains no search
# telemetry counters. Use search-telemetry as a descriptive alias when profiling.
bench-instrument = []
search-telemetry = ["bench-instrument"]
# Pre-B f64 eval-cache values (still 21-bit) for A/B benches only — not production.
eval_cache_baseline = []
# A/B only: DistTopoEntry keeps [u128;81] inline (spill unused). Not for production.
dist_layers_full81 = []
# A/B only: DistTopoEntry inline capacity 12 instead of 16. Not for production.
dist_layers_inline12 = []
# Multi-threaded perft / Lazy SMP (rayon). Normal wasm builds leave this off;
# browser Lazy SMP uses the explicit wasm-threads profile below.
parallel = ["dep:rayon"]
# Bake the precomputed pawn O1 tables (~1.85MB) into the binary instead of
# building them at cold start. Use for prewarmed / latency-sensitive targets
# (e.g. the website); the default build computes them on first use / `prewarm()`.
embed-tables = []
# wasm-bindgen bindings for the website (build with:
# wasm-pack build --no-default-features --features wasm
# or cargo build --lib --target wasm32-unknown-unknown --no-default-features --features wasm)
wasm = ["dep:wasm-bindgen", "dep:js-sys"]
# Browser Lazy SMP: WebAssembly atomics + wasm-bindgen-rayon worker pool.
wasm-threads = ["wasm", "parallel", "dep:wasm-bindgen-rayon"]
[dependencies]
rand = "0.8"
sha2 = "0.10"
rayon = { version = "1.10", optional = true }
wasm-bindgen = { version = "=0.2.100", optional = true }
js-sys = { version = "0.3", optional = true }
wasm-bindgen-rayon = { version = "1.2", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
core_affinity = "0.8"
rusqlite = { version = "0.32", features = ["bundled"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-time = "1"
getrandom = { version = "0.2", features = ["js"] }
[dev-dependencies]
core_affinity = "0.8"
criterion = "0.5"
rusqlite = { version = "0.32", features = ["bundled"] }
[[bench]]
name = "path_bfs"
harness = false
[[bench]]
name = "perft_pawn_modes"
harness = false
[[bench]]
name = "perft_pawn_only"
harness = false
[[bench]]
name = "flood_modes"
harness = false
[[bench]]
name = "tt_speedup"
harness = false
[[bench]]
name = "perft_full_compare"
harness = false
[[bench]]
name = "cat_build"
harness = false