]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: function macro now returns the function name
authorJason Ish <jason.ish@oisf.net>
Tue, 25 Aug 2020 19:15:21 +0000 (13:15 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Sep 2020 11:04:14 +0000 (13:04 +0200)
commitea1338b4647b825e3ffb48fcfeba4a890c3e7830
treefbfa0b22db8f17aa5b6c5e73ad6438c39c1854c2
parentbac8016d1779eabe3d56077f597e7318b71b911c
rust: function macro now returns the function name

Borrow a macro from https://github.com/popzxc/stdext-rs that
will give us the Rust function name in SCLog messages in Rust.

As this trick only works on Rust 1.38 and newer, keep the old
macro around and set a feature based on a Rust version test
done during ./configure.
configure.ac
rust/Cargo.toml.in
rust/src/log.rs