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] [lib]
crate-type = ["staticlib", "rlib"] crate-type = ["staticlib", "rlib"]
path = "@e_rustdir@/src/lib.rs" path = "@e_rustdir@/src/lib.rs"
name = "suricata_rust" name = "suricata"
[profile.release] [profile.release]
debug = true debug = true

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

Loading…
Cancel
Save