lib.rs.html -- source
Description: Source to the Rust file `/home/vincent/.cargo/registry/src/github.com-0a35038f75765ae4/winapi-build-0.1.1/src/lib.rs`.
Keywords: rust, rustlang, rust-lang

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14

    // Copyright © 2015, Peter Atashian
    // Licensed under the MIT License <LICENSE.md>
    pub fn link(name: &str, bundled: bool) {
        use std::env::var;
        let target = var("TARGET").unwrap();
        let target: Vec<_> = target.split('-').collect();
        if target.get(2) == Some(&"windows") {
            println!("cargo:rustc-link-lib=dylib={}", name);
            if bundled && target.get(3) == Some(&"gnu") {
                let dir = var("CARGO_MANIFEST_DIR").unwrap();
                println!("cargo:rustc-link-search=native={}/{}", dir, target[0]);
            }
        }
    }

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `typedef` (or `tdef`).

Search functions by type signature (e.g. `vec -> usize`)