Skip to main content

ulala_say_hello/
lib.rs

1#[cfg(feature = "hello")]
2pub fn say_hello(name: &str) {
3    println!("Hello {name}!")
4}
5
6#[cfg(feature = "bye")]
7pub fn say_goodbye(name: &str) {
8    println!("Goodbye {name}!")
9}
10
11#[cfg(feature = "cheese")]
12pub fn say_cheese(name: &str) {
13    println!("Cheese {name}!")
14}