Making your own API, a new editor in Rust and more …
Welcome to the tenth edition of our newsletter! The Rust community is thriving and has an abundance of informative articles, tutorials, applications, and repositories. However, with so much to choose from, it can be overwhelming. We have handpicked the best of the best for you, so let’s dive in!
In today’s email:
- Connecting the world with Rust
- Introducing Lapce: a new editor built with the power of Rust
- The Rust Foundation
Connecting the world with Rust
Before you start writing your API, it is important to think about what you want to achieve with it. Do you want to expose specific functionality of your application to other developers? Do you want to allow other applications to access data stored in your application? Answering these questions will help you determine the scope and functionality of your API.
Once you have a clear idea of what you want your API to do, the next step is to choose a framework for building it. There are several popular options for building APIs in Rust, the most popular ones are Rocket and Actix. Each of these frameworks has its own set of features and benefits, so it is worth doing some research to determine which one is the best fit for your needs.
Once you have chosen a framework, you can start designing the structure and functionality of your API. This will involve creating endpoints, which are specific points of access for interacting with your API, and defining the input and output of each endpoint. You will also need to consider how you want to handle authentication, error handling, and other important aspects of API development. To learn more see some links below:
With these resources and a little bit of practice, you will be well on your way to writing your own API in Rust. Happy coding!
Introducing Lapce: a new editor built with the power of Rust
One of the things that sets Lapce apart is its clean and user-friendly interface. Additionally, it offers optional modal-editing with Vim-like modes, making it a great choice for those who prefer this type of editing.
Another feature we really liked is called Code Lens, which allows for a more efficient way of folding code and getting a general overview of a file. Keep in mind that Lapce is currently still in its pre-alpha stage.
With ~23k Github stars and 129 contributors, Lapce is definitely worth checking, for a quick youtube movie on Lapce follow the link.
Other editors we have highlighted in previous newsletters are Helix (also written in Rust) and Visual Studio Code.
Snippets
- Rust 1.67.0 released. Want to see the release details?
- mdBook create online books from Markdown files. Made in Rust.
- Strengthen your Rust skills with Exercism and choose the Rust Track.
The Rust Foundation
The Rust programming language is widely known for its focus on safety and reliability, making it a popular choice for systems programming and other performance-critical applications. The Rust foundation aims to support the continued development and growth of the Rust programming language by providing resources and infrastructure to the community of volunteer developers who maintain the language.
Some specific ways the Rust foundation supports the Rust project include:
Providing funding for development and infrastructure costs, such as hosting and testing services. Supporting community events, such as Rust conferences and meetups, to foster collaboration and learning among Rust developers. Managing the trademark and branding of the Rust programming language to ensure consistency and protect against misuse. The Rust foundation also seeks to advance the state of the art in systems programming by supporting research and development in areas such as memory safety, performance, and language design. Overall, the goal of the Rust foundation is to ensure that the Rust programming language can continue to evolve and improve, while also providing a stable and sustainable platform for developers to build on. Moreover, the foundation gives out grants to the public to fund initiatives related to Rust.
They recently released their annual report for 2022 that highlights the financials and important milestones.
Enjoy your Sunday, and have a great week ahead.
Thanks for reading!
Bob Peters
Feel free to connect with me on LinkedIn