From a4c194955a275f94bbe2b1421df2d3f239bd3794 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Sat, 6 Aug 2016 12:16:46 -0400 Subject: [PATCH] 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: https://github.com/rust-lang/cargo/pull/545 --- mod_prometheus.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod_prometheus.rs b/mod_prometheus.rs index f1f3b4b..a773bc1 100644 --- a/mod_prometheus.rs +++ b/mod_prometheus.rs @@ -4,7 +4,6 @@ extern crate freeswitchrs; use freeswitchrs::raw as fsr; use freeswitchrs::mods::*; // This will get replaced with a mods prelude use freeswitchrs::Status; -use std::borrow::Cow; fn prometheus_load(mod_int: &ModInterface) -> Status { mod_int.add_raw_api("counter_increase", "Increase counter", "counter_increase", counter_increase_api); @@ -27,7 +26,7 @@ static MOD_PROMETHEUS_DEF: ModDefinition = ModDefinition { runtime: None, }; -freeswitch_export_mod!(mod_prometheus_module_interface, MOD_PROMETHEUS_DEF); +freeswitch_export_mod!(libmod_prometheus_module_interface, MOD_PROMETHEUS_DEF); #[allow(unused_variables)] unsafe extern "C" fn counter_increase_api(cmd: *const std::os::raw::c_char,