summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricecodder <git@icecodder.me>2023-01-04 13:48:57 +0100
committerGitHub <noreply@github.com>2023-01-04 13:48:57 +0100
commit8f09090698f91e70300726fe7bfd081a834a75d9 (patch)
tree0e056748d282452752cc42ba58f20d648ce62356
parente5aff579caa662c3dea4a301d33821e9b5ee7099 (diff)
set public function as unsafe
-rw-r--r--exes/all/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/exes/all/src/lib.rs b/exes/all/src/lib.rs
index f6b527d..29dd6a0 100644
--- a/exes/all/src/lib.rs
+++ b/exes/all/src/lib.rs
@@ -98,7 +98,7 @@ pub unsafe extern "C" fn stop_instance(instance: *mut AllInOneInstance) {
#[no_mangle]
/// Initialized a new nova instance and an async runtime (tokio reactor)
/// Dont forget to stop this instance using `stop_instance`
-pub extern "C" fn start_instance(config: *const libc::c_char) -> *mut AllInOneInstance {
+pub unsafe extern "C" fn start_instance(config: *const libc::c_char) -> *mut AllInOneInstance {
let buf_name = unsafe { CStr::from_ptr(config).to_bytes() };
let settings = String::from_utf8(buf_name.to_vec()).unwrap();
let (stop, trigger_stop) = oneshot::channel();