Rustc-link-lib static library

⚓ Rust    📅 2026-04-19    👤 surdeus    👁️ 3      

surdeus

Hello,

I am trying to understand rustc-link-lib with a static library.

Why does this work:

println!("cargo:rustc-link-lib=sqlite3");

This file is libsqlite3.a.

What happens if I have libsqlite3.so and libsqlite3.a ?

Thank you very much in advance for any help.

5 posts - 3 participants

Read full topic

🏷️ Rust_feed