Skip to content

Commit a4c1949

Browse files
committed
Adjust symbol name for first load into FreeSWITCH
I'd prefer if cargo would generate mod_prometheus.so instead of libmod_prometheus.so but I did not find a way to tell cargo or rustc to not prefix the binary with 'lib'. A post-build step on cargo would be also an option if this were implemented: rust-lang/cargo#545
1 parent 33dff63 commit a4c1949

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: mod_prometheus.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ extern crate freeswitchrs;
44
use freeswitchrs::raw as fsr;
55
use freeswitchrs::mods::*; // This will get replaced with a mods prelude
66
use freeswitchrs::Status;
7-
use std::borrow::Cow;
87

98
fn prometheus_load(mod_int: &ModInterface) -> Status {
109
mod_int.add_raw_api("counter_increase", "Increase counter", "counter_increase", counter_increase_api);
@@ -27,7 +26,7 @@ static MOD_PROMETHEUS_DEF: ModDefinition = ModDefinition {
2726
runtime: None,
2827
};
2928

30-
freeswitch_export_mod!(mod_prometheus_module_interface, MOD_PROMETHEUS_DEF);
29+
freeswitch_export_mod!(libmod_prometheus_module_interface, MOD_PROMETHEUS_DEF);
3130

3231
#[allow(unused_variables)]
3332
unsafe extern "C" fn counter_increase_api(cmd: *const std::os::raw::c_char,

0 commit comments

Comments
 (0)