blob: 326fdf95f939d0516b6a59313e3e07d5623333ed [file]
pub mod submodule;
pub fn greeting() -> &'static str {
submodule::msg()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_greeting() {
assert_eq!(greeting(), "Hello from directory artifact!");
}
#[test]
#[cfg(test_cbs)]
fn test_cbs_env() {
assert_eq!(
env!("GREETING_FROM_CBS"),
"Hello from cargo build script!"
);
}
}