]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/Cargo: build as rlib for plugin linkage
authorJason Ish <jason.ish@oisf.net>
Mon, 17 Aug 2020 16:32:05 +0000 (10:32 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 3 Sep 2020 11:02:18 +0000 (13:02 +0200)
Build Rust code as an rlib, in addition to a staticlib so plugins
can link with the Rust code.

rust/Cargo.toml.in

index 9a0f8a0150a07ebb8ac644b43fb22d2a408d3ed6..7e7e1b105fa19b18ec0b0d603b816d14cdc61bfc 100644 (file)
@@ -4,7 +4,7 @@ version = "@PACKAGE_VERSION@"
 edition = "2018"
 
 [lib]
-crate-type = ["staticlib"]
+crate-type = ["staticlib", "rlib"]
 path = "@e_rustdir@/src/lib.rs"
 
 [profile.release]