rust/clib: build both cdylib and staticlib

For applications wishing to embed libnmstate without having to
distribute all its dependencies, it is useful to build the static
library alongside the dynamic one.

Signed-off-by: Antoni Segura Puimedon <antoni@redhat.com>
This commit is contained in:
Antoni Segura Puimedon 2022-06-14 17:14:50 +02:00 committed by Gris Ge
parent 79ec306895
commit c5561e9b68

View File

@ -9,7 +9,7 @@ edition = "2018"
[lib]
name = "nmstate"
path = "lib.rs"
crate-type = ["cdylib"]
crate-type = ["cdylib", "staticlib"]
[dependencies]
nmstate = { path = "../lib" }