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] [dependencies]
base = { path = "../base" } base = { path = "../base" }
cxx = "1.0.69" cxx = { path = "../external/cxx-rs" }

View File

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