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