MCPcopy Create free account
hub / github.com/bytecodealliance/system-interface / main

Function main

build.rs:4–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2use std::io::Write;
3
4fn main() {
5 use_feature_or_nothing("can_vector"); // https://github.com/rust-lang/rust/issues/69941
6 use_feature_or_nothing("clamp"); // https://github.com/rust-lang/rust/issues/44095
7 use_feature_or_nothing("extend_one"); // https://github.com/rust-lang/rust/issues/72631
8 use_feature_or_nothing("io_error_more"); // https://github.com/rust-lang/rust/issues/86442
9 use_feature_or_nothing("pattern"); // https://github.com/rust-lang/rust/issues/27721
10 use_feature_or_nothing("seek_stream_len"); // https://github.com/rust-lang/rust/issues/59359
11 use_feature_or_nothing("shrink_to"); // https://github.com/rust-lang/rust/issues/56431
12 use_feature_or_nothing("toowned_clone_into"); // https://github.com/rust-lang/rust/issues/41263
13 use_feature_or_nothing("try_reserve"); // https://github.com/rust-lang/rust/issues/56431
14 use_feature_or_nothing("unix_socket_peek"); // https://github.com/rust-lang/rust/issues/76923
15 use_feature_or_nothing("windows_by_handle"); // https://github.com/rust-lang/rust/issues/63010
16 use_feature_or_nothing("write_all_vectored"); // https://github.com/rust-lang/rust/issues/70436
17 // https://doc.rust-lang.org/unstable-book/library-features/windows-file-type-ext.html
18 use_feature_or_nothing("windows_file_type_ext");
19
20 // Don't rerun this on changes other than build.rs, as we only depend on
21 // the rustc version.
22 println!("cargo:rerun-if-changed=build.rs");
23}
24
25fn use_feature_or_nothing(feature: &str) {
26 if has_feature(feature) {

Callers

nothing calls this directly

Calls 1

use_feature_or_nothingFunction · 0.85

Tested by

no test coverage detected