From dc152bf8e55fa0e58c350f00a8116cc8c43f5022 Mon Sep 17 00:00:00 2001 From: Silas Groh Date: Fri, 29 Sep 2023 22:08:05 +0800 Subject: [PATCH] Make C API usable from Rust (#6765) --- crates/c-api/Cargo.toml | 2 +- crates/c-api/src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/c-api/Cargo.toml b/crates/c-api/Cargo.toml index 26e358424405..454d244d07d3 100644 --- a/crates/c-api/Cargo.toml +++ b/crates/c-api/Cargo.toml @@ -11,7 +11,7 @@ publish = false [lib] name = "wasmtime" -crate-type = ["staticlib", "cdylib"] +crate-type = ["staticlib", "cdylib", "rlib"] doc = false test = false doctest = false diff --git a/crates/c-api/src/lib.rs b/crates/c-api/src/lib.rs index 4bc111b5dc1b..3ef450731902 100644 --- a/crates/c-api/src/lib.rs +++ b/crates/c-api/src/lib.rs @@ -11,6 +11,8 @@ #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] +pub use wasmtime::*; + mod config; mod engine; mod error;