()
| 1 | fn main() { |
| 2 | // libgit2 1.8 (libgit2-sys 0.17.0+1.8.1) references Advapi32 symbols |
| 3 | // (GetNamedSecurityInfoW, RegOpenKeyExW, RegQueryValueExW, RegCloseKey) |
| 4 | // but its build script never links Advapi32 on MSVC. Emitted from this |
| 5 | // crate's own build script so every binary and test binary of this |
| 6 | // crate resolves them (a wrapper crate's flags are dropped from the |
| 7 | // link graph when nothing references it). |
| 8 | if std::env::var_os("CARGO_CFG_WINDOWS").is_some() { |
| 9 | println!("cargo:rustc-link-lib=advapi32"); |
| 10 | } |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected