From 451a0fde9018e5e10ade1fba6525d861ec3ef9e7 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 19 Jan 2024 14:40:31 -0600 Subject: [PATCH] make a static lib --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 04edd18..77073f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,12 @@ version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lib] +crate-type = [ + "staticlib", # Ensure it gets compiled as a (static) C library + # "cdylib", # If you want a shared/dynamic C library (advanced) + "lib", # For downstream Rust dependents: `examples/`, `tests/` etc. +] [dependencies]