types.rs
you will find Satori’s custom data types to work with, you don’t need to touch this file.
Inside lib.rs
is where your lib’s code live.
HashMap<String, Object>
, this is where all the objects areHashMap<String, String>
where all the references areHashMap<String, (f32, f32)>
that tracks the size of object and the time they are accessed with the purpouse of memory balancing. When an object is accessed or modified we recommend to change the first value to the actual size of the object and increment the second value by one.&mut object
as parameterlist
you must return a vec with the name of all the operations you will declare in this library, the name of the operations and the names on the list must be equal
startup
executes code on Satori’s starting up process, it must return an string that will be printed
Then you declare all your custom operations, these need to return a String
as response and must have the following structure
/dll
folder in your Satori’s root folder (the folder is called dll
in both windows and linux but in linux you must paste .so
files to it)