2 releases
Uses old Rust 2015
0.1.1 | Mar 15, 2023 |
---|---|
0.1.0 | Mar 15, 2023 |
#4 in #libmosquitto
25 downloads per month
Used in mosquitto-auth
4KB
mosquitto-sys
Dependencies
clang
libmosquitto-dev
Demode code
use mosquitto_io::{
mosquitto_auth_check_password, mosquitto_auth_plugin_init, mosquitto_auth_unpwd_check,
mosquitto_unpwd_check_callback, MOSQ_ERR_AUTH,
};
#[no_mangle]
pub extern "C" fn mosquitto_auth_plugin_init(
user_data: *mut *mut c_void,
opts: *const c_char,
auth_cb: *mut mosquitto_auth_check_password,
unauth_cb: *mut mosquitto_unpwd_check_callback,
) -> c_int {
// Initialize your plugin here
println!("Mosquitto authentication plugin initialized");
MOSQ_ERR_SUCCESS
}
Dependencies
~0–2MB
~40K SLoC