@aalonzoLU
@aalonzoLU
Lexo(Andrés) Alonzo
Desarrollador Web apasionado por el Software Libre y miembro de
lexo.io.gt - blog.lexo.io.gt
IO.GT
@aalonzoLU
Rust es un lenguaje de programación de sistemas extremadamente rápido, previene fallas de segmentación y garantiza la seguridad de los hilos de ejecución.
¿Cómo instalar Rust?
@aalonzoLu
curl https://sh.rustup.rs -sSf | sh
- Rocket
- Serde
- Diesel
@aalonzoLu
@aalonzoLu
Web framework for writing fast web applications
@aalonzoLu
@aalonzoLu
Framework for serializing and deserializing Rust data structures
@aalonzoLu
Safe, extensible ORM and query builder
@aalonzoLu
Select
@aalonzoLu
Select
@aalonzoLu
Insert
@aalonzoLu
@aalonzoLu
@aalonzoLu
cargo new rust-example --bin
@aalonzoLu
[dependencies]
rocket = "0.3.6"
rocket_codegen = "0.3.6"src/main.rs
@aalonzoLu
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/<name>/<age>")]
fn hello(name: String, age: u8) -> String {
format!("Hello, {} year old named {}!", age, name)
}
fn main() {
rocket::ignite()
.mount("/hello", routes![hello])
.launch();
}
@aalonzolu