We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b79623c + 12276c1 commit fb35e23Copy full SHA for fb35e23
build.rs
@@ -3,6 +3,15 @@ use std::fs;
3
use std::path::Path;
4
5
fn main() {
6
+ #[cfg(windows)]
7
+ {
8
+ // Clap + the full command graph can exceed the default 1 MiB Windows
9
+ // main-thread stack during process startup. Reserve a larger stack for
10
+ // the CLI binary so `rtk.exe --version`, `--help`, and hook entry
11
+ // points start reliably without requiring ad-hoc RUSTFLAGS.
12
+ println!("cargo:rustc-link-arg=/STACK:8388608");
13
+ }
14
+
15
let filters_dir = Path::new("src/filters");
16
let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR must be set by Cargo");
17
let dest = Path::new(&out_dir).join("builtin_filters.toml");
0 commit comments