blue_build_utils/
macros.rs1#[macro_export]
3macro_rules! string {
4 ($str:expr) => {
5 String::from($str)
6 };
7}
8
9#[macro_export]
11macro_rules! cowstr {
12 ($str:expr) => {
13 ::std::borrow::Cow::<'_, str>::from($str)
14 };
15}
16
17#[macro_export]
20macro_rules! string_vec {
21 ($($string:expr),* $(,)?) => {
22 {
23 vec![
24 $($crate::string!($string),)*
25 ]
26 }
27 };
28}
29
30#[macro_export]
33macro_rules! cowstr_vec {
34 ($($string:expr),* $(,)?) => {
35 {
36 vec![
37 $($crate::cowstr!($string),)*
38 ]
39 }
40 };
41}