uses the lazy_static macro to create the IDLE_MESSAGE variable
remove the binding to a such variable.
export a function that is used to initialize the idle_message variable, with this, we avoid having C modifying memory
created in rust which was causing PIC issues.
There is another option to initialize/configure the value used for IDLE_MESSAGE, through an env variable that can be read in rust at compile time, reducing the interaction between C and Rust. This can be added later.
Changes:
export a function that is used to initialize the idle_message variable, with this, we avoid having C modifying memory created in rust which was causing PIC issues.
There is another option to initialize/configure the value used for IDLE_MESSAGE, through an env variable that can be read in rust at compile time, reducing the interaction between C and Rust. This can be added later.