Skip to content

Commit 8c40869

Browse files
committed
libkrun: Produce a proper Rust library
Produce a proper Rust library to avoid the need for C library installation as well as binding generation/definition. Basically, we can now reference the crate via Cargo.toml: [dependencies] libkrun = ... instead of having to rely on constructs like: #[link(name = "krun")] extern "C" { pub fn krun_create_ctx() -> i32; ... } Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent f670dc8 commit 8c40869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libkrun/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ vm-memory = { version = "0.17", features = ["backend-mmap"] }
4646

4747
[lib]
4848
name = "krun"
49-
crate-type = ["cdylib"]
49+
crate-type = ["cdylib", "lib"]

0 commit comments

Comments
 (0)