MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / main

Function main

atomic-agent/build.rs:1–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1fn 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected