These lines should be in the head of lib.rs file.
1 | headr()
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
#[macro_use]
extern crate rustr;
pub mod export;
pub use rustr::*;
// #[rustr_export]
pub fn say_hi()->RResult<String>{
Ok("hello world".into())
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.