You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
422 B
Rust
20 lines
422 B
Rust
#[cfg(feature = "feature1")]
|
|
pub use self::with_feature_config::execute;
|
|
|
|
#[cfg(not(feature = "feature1"))]
|
|
pub use self::without_feature_config::execute;
|
|
|
|
#[cfg(feature = "feature1")]
|
|
mod with_feature_config {
|
|
pub fn execute() {
|
|
println!("Executing feature 1");
|
|
}
|
|
}
|
|
|
|
#[cfg(not(feature = "feature1"))]
|
|
mod without_feature_config {
|
|
pub fn execute() {
|
|
println!("Not executing feature 1")
|
|
}
|
|
}
|