Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/system-interface
/ use_feature_or_nothing
Function
use_feature_or_nothing
build.rs:25–29 ·
view source on GitHub ↗
(feature: &str)
Source
from the content-addressed store, hash-verified
23
}
24
25
fn use_feature_or_nothing(feature: &str) {
26
if has_feature(feature) {
27
use_feature(feature);
28
}
29
}
30
31
fn use_feature(feature: &str) {
32
println!(
"cargo:rustc-cfg={}"
, feature);
Callers
1
main
Function · 0.85
Calls
2
has_feature
Function · 0.85
use_feature
Function · 0.85
Tested by
no test coverage detected