mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Fix init rust code setup
This commit is contained in:
parent
8e8f01f8b5
commit
5a94ef9106
@ -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" }
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user