1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use sails_macros::program; struct MyProgram; #[program] impl MyProgram { pub fn new() -> Self { Self } } #[program] impl MyProgram { pub fn default() -> Self { Self } } #[tokio::main] async fn main() {}