Rocket is a web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety. Handling forms is simple and easy. Simply derive FromForm for your structure and let Rocket know which parameter to use. Rocket parses and validates the form request, creates the structure, and calls your function. Bad form request? Rocket doesn’t call your function! What if you want to know if the form was bad? Simple! Change the type of task to Option or Result! Rocket has first-class support for JSON, right out of the box. Simply derive Deserialize or Serialize to receive or return JSON, respectively. Like other important features, JSON works through Rocket’s FromData trait, Rocket’s approach to deriving types from body data. It works like this: specify a data route parameter of any type that implements FromData. A value of that type will then be created automatically from the incoming request body.

Features

  • From request to response Rocket ensures that your types mean something
  • Spend your time writing code that really matters, and let Rocket generate the rest
  • Simple, intuitive APIs make Rocket approachable, no matter your background
  • Create your own first-class primitives that any Rocket application can use
  • Type safe, boilerplate free, easy to use, and extensible
  • Rocket has first-class support for JSON, right out of the box

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Rocket

Rocket Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rocket!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Frameworks, Rust Web Development Frameworks

Registered

2021-04-29