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
//! Build script for RustDupe
//!
//! This build script handles platform-specific configuration:
//! - Windows: Embeds the application manifest for long path support (>260 chars)
//!
//! # Windows Long Path Support
//!
//! By default, Windows limits file paths to 260 characters (MAX_PATH).
//! This causes issues when scanning directories like `node_modules` that
//! often have deeply nested paths exceeding this limit.
//!
//! The manifest file (`rustdupe.manifest`) includes `longPathAware=true`
//! which, combined with the Windows 10 v1607+ registry setting, enables
//! paths up to 32,767 characters.
//!
//! # Usage
//!
//! This script runs automatically during `cargo build`. No manual intervention
//! is required. On non-Windows platforms, the script does nothing.