1#[cfg(feature = "add")]
2pub fn add(left: u64, right: u64) -> u64 {
3 left + right
4}
5
6#[cfg(feature = "hello")]
7pub fn say_hello(name: &str) -> String {
8 format!("Hello, {}!", name)
9}
10
11#[cfg(feature = "goodbye")]
12pub fn say_goodbye(name: &str) -> String {
13 format!("Goodbye, {}!", name)
14}
15
16#[cfg(feature = "hello")]
17pub fn say_hello_to_everyone() -> String {
18 "Hallo, averyons!".to_string()
19}
20
21#[cfg(feature = "goodbye")]
22pub fn say_goodbye_to_everyone() -> String {
23 "Goodbye, averyons!".to_string()
24}
25