Debian Codegraph @

build.rs

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#;
2
3 fn mainrust-analyzer cargo isal-sys 0.5.3+496255c main().() {
4 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("cargo:rerun-if-changed=build.rs");
5
•6 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("cargo:rustc-link-lib=isal");
7
8 #[cfg(feature = "regenerate-bindings")]
9 {
10 let out = PathBufrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/PathBuf#::fromrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[PathBuf][`From<&T>`]from().(&(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{}/igzip_lib.rs", stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/::varrust-analyzer cargo std https://github.com/rust-lang/rust/library/std env/var().("OUT_DIR").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().())));
11 bindgenrust-analyzer cargo bindgen 0.72.1 crate/::Builderrust-analyzer cargo bindgen 0.72.1 Builder#::defaultrust-analyzer cargo bindgen 0.72.1 impl#[Builder][Default]default().()
12 // The input header we would like to generate
13 // bindings for.
•14 .headerrust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]header().("/usr/include/isa-l/igzip_lib.h")
15 // Tell cargo to invalidate the built crate whenever any of the
16 // included header files changed.
17 .parse_callbacksrust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]parse_callbacks().(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T>`]new().(bindgenrust-analyzer cargo bindgen 0.72.1 crate/::CargoCallbacksrust-analyzer cargo bindgen 0.72.1 CargoCallbacks#::newrust-analyzer cargo bindgen 0.72.1 impl#[CargoCallbacks]new().()))
18 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("__uint64_t_")
19 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("__size_t")
20 // Replaced by libc::FILE
21 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("FILE")
22 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("_IO_FILE")
23 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("_IO_codecvt")
24 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("_IO_wide_data")
25 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("_IO_marker")
26 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("_IO_lock_t")
27 // Replaced by i64
28 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("LARGE_INTEGER")
29 // Replaced by libc::timespec
30 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("timespec")
31 // etc
32 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("__time_t")
33 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("__syscall_slong_t")
34 // .blocklist_type("__off64_t")
35 .blocklist_typerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]blocklist_type().("__off_t")
36 .size_t_is_usizerust-analyzer cargo bindgen 0.72.1 options/impl#[Builder]size_t_is_usize().(true)
37 .generaterust-analyzer cargo bindgen 0.72.1 impl#[Builder]generate().()
38 .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Unable to generate bindings")
39 .write_to_filerust-analyzer cargo bindgen 0.72.1 impl#[Bindings]write_to_file().(out)
40 .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
41 }
42 }