Skip to main content

imgn_say_hello/
lib.rs

1#[cfg(feature = "hello")]
2pub fn say_hello(name: &str) -> String {
3    format!("Hello {name}")
4}
5
6#[cfg(feature = "bye")]
7pub fn say_goodbye(name: &str) -> String {
8    format!("Goodbye {name}")
9}
10
11#[cfg(feature = "hello")]
12pub fn say_hello_to_everyone() -> String {
13    "Hello Everyone".to_string()
14}
15
16#[cfg(feature = "bye")]
17pub fn say_goodbye_to_everyone() -> String {
18    "Goodbye Everyone".to_string()
19}