rust: rename to suricata (from suricata_rust)

Rename the Rust lib to simply "suricata" instead of "suricata_rust".
This allows Rust plugin/library code to use it under the name "suricata"
which is what should be expected.

The name was only "suricata_rust" to prevent on-disk conflict with the C
code, so just rename the file on disk, which doesn't affect how the code
is interacted with from an API layer.
pull/6764/head
Jason Ish 4 years ago committed by Victor Julien
parent 2ffe88c1f0
commit bbd5e6402b

@ -9,7 +9,7 @@ members = [".", "./derive"]
[lib]
crate-type = ["staticlib", "rlib"]
path = "@e_rustdir@/src/lib.rs"
name = "suricata_rust"
name = "suricata"
[profile.release]
debug = true

@ -45,8 +45,12 @@ else
$(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \
--features "$(RUST_FEATURES)" $(RUST_TARGET)
endif
if test -e $(RUST_SURICATA_LIBDIR)/suricata_rust.lib; then \
cp $(RUST_SURICATA_LIBDIR)/suricata_rust.lib \
if test -e $(RUST_SURICATA_LIBDIR)/suricata.lib; then \
cp -a $(RUST_SURICATA_LIBDIR)/suricata.lib \
$(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \
fi
if test -e $(RUST_SURICATA_LIBDIR)/libsuricata.a; then \
cp -a $(RUST_SURICATA_LIBDIR)/libsuricata.a \
$(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \
fi
$(MAKE) gen/rust-bindings.h

Loading…
Cancel
Save