ryde
jsx my life up
Ryde é uma única pessoa, estrutura da web única para ferrugem
cargo add --git https://github.com/swlkr/ryde use ryde :: * ;
# [ router ]
fn router ( ) -> Router {
Router :: new ( ) . route ( "/" , get ( get_slash ) )
}
# [ main ]
async fn main ( ) {
serve ( "::1:9001" , router ( ) ) . await
}
async fn get_slash ( ) -> Html {
html ! {
<! DOCTYPE html>
<html>
<head>
<title>ryde with rust</title>
</head>
<body>
<div>you are here { url! ( get_slash ) } </div>
</body>
</html>
}
}Clone o repositório e confira o resto dos exemplos!
O objetivo de Ryde é destruir todo o Boilerplate. Cada tecla que você escreve deve significar algo. Esse objetivo é alcançado através do uso generalizado da ciência da macroologia para definir uma DSL de desenvolvimento da Web sobre o Axum, Tokio e Sqlite.