Previously it was libsuricata.a, but eventually we want to get
to a place where libsuricata.a is a combination of the Rust
and C code.
fi
echo -n "installation for $host OS... "
- RUST_SURICATA_LIBNAME="libsuricata.a"
+ RUST_SURICATA_LIBNAME="libsuricata_rust.a"
e_magic_file=""
e_magic_file_comment="#"
[lib]
crate-type = ["staticlib", "rlib"]
path = "@e_rustdir@/src/lib.rs"
+name = "suricata_rust"
[profile.release]
debug = true
$(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \
--features "$(RUST_FEATURES)" $(RUST_TARGET)
endif
- if test -e $(RUST_SURICATA_LIBDIR)/suricata.lib; then \
- cp $(RUST_SURICATA_LIBDIR)/suricata.lib \
- $(RUST_SURICATA_LIBDIR)/libsuricata.a; \
+ if test -e $(RUST_SURICATA_LIBDIR)/suricata_rust.lib; then \
+ cp $(RUST_SURICATA_LIBDIR)/suricata_rust.lib \
+ $(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \
fi
$(MAKE) gen/rust-bindings.h