Skip to content

Commit 186e823

Browse files
example-plugin: Fix server dependency path
1 parent bc89b43 commit 186e823

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/server/example-plugin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ name = "init_handler"
1010
crate-type = [ "cdylib" ]
1111

1212
[dependencies]
13-
server = { package = "http-srv", path = "../crates/server" }
13+
server = { package = "http-srv", path = "../" }

crates/server/example-plugin/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use http::HttpRequest;
44
use server::{handler::Handler, http};
55

66
#[unsafe(no_mangle)]
7-
pub extern "Rust" fn init_handler(handler: Option<&mut Handler>) {
7+
pub extern "C" fn init_handler(handler: Option<&mut Handler>) {
88
let handler = handler.unwrap();
99

1010
handler.get("/count", |req: &mut HttpRequest| {

0 commit comments

Comments
 (0)