AC_MSG_RESULT(yes)
RUST_FEATURES=""
- AS_VERSION_COMPARE([$rustc_version], [1.38.0],
- [],
- [RUST_FEATURES="$RUST_FEATURES function-macro"],
- [RUST_FEATURES="$RUST_FEATURES function-macro"])
rust_vendor_comment="# "
have_rust_vendor="no"
// This macro has been borrowed from https://github.com/popzxc/stdext-rs, which
// is released under the MIT license as there is currently no macro in Rust
// to provide the function name.
-#[cfg(feature = "function-macro")]
#[macro_export(local_inner_macros)]
macro_rules!function {
() => {{
}}
}
-// Rust versions less than 1.38 can not use the above macro, so keep the old
-// macro around for a while.
-#[cfg(not(feature = "function-macro"))]
-#[macro_export(local_inner_macros)]
-macro_rules!function {
- () => {{ "<rust>" }}
-}
-
#[macro_export]
macro_rules!do_log {
($level:expr, $code:expr, $($arg:tt)*) => {