We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc89b43 commit 186e823Copy full SHA for 186e823
crates/server/example-plugin/Cargo.toml
@@ -10,4 +10,4 @@ name = "init_handler"
10
crate-type = [ "cdylib" ]
11
12
[dependencies]
13
-server = { package = "http-srv", path = "../crates/server" }
+server = { package = "http-srv", path = "../" }
crates/server/example-plugin/src/lib.rs
@@ -4,7 +4,7 @@ use http::HttpRequest;
4
use server::{handler::Handler, http};
5
6
#[unsafe(no_mangle)]
7
-pub extern "Rust" fn init_handler(handler: Option<&mut Handler>) {
+pub extern "C" fn init_handler(handler: Option<&mut Handler>) {
8
let handler = handler.unwrap();
9
handler.get("/count", |req: &mut HttpRequest| {
0 commit comments