msfrn_test_lib/
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_world() -> String {
13    "Hello World".to_string()
14}