Fix init rust code setup

This commit is contained in:
topjohnwu 2023-05-23 21:50:13 -07:00
parent 8e8f01f8b5
commit 5a94ef9106
2 changed files with 4 additions and 3 deletions

View File

@ -12,4 +12,4 @@ cxx-gen = { path = "../external/cxx-rs/gen/lib" }
[dependencies]
base = { path = "../base" }
cxx = "1.0.69"
cxx = { path = "../external/cxx-rs" }

View File

@ -2,8 +2,9 @@ pub use logging::*;
mod logging;
#[cxx::bridge(namespace = "rust")]
pub mod ffi2 {
#[cxx::bridge]
pub mod ffi {
#[namespace = "rust"]
extern "Rust" {
fn setup_klog();
}