Mach Is Now Available on WinGet - Install a C++20 Web Framework with One Command
I'm happy to share that Mach is now available through WinGet , making it easier to install the framework on Windows. Mach is an open-source C++20 web framework inspired by ASP.NET Core, designed to simplify building HTTP APIs in modern C++. It provides minimal APIs, controllers, dependency injection, middleware, JSON serialization, validation, and more, built on top of Boost.Asio and Boost.Beast.…
Mach, an open-source C++20 web framework, has become accessible via WinGet, streamlining its installation on Windows systems. Crafted to facilitate the creation of HTTP APIs in modern C++, Mach offers essential features such as minimal APIs, controllers, dependency injection, middleware, JSON serialization, and validation. Built upon Boost.Asio and Boost.Beast, Mach simplifies web development by abstracting away the complexities of asynchronous networking.
To install Mach on Windows, users can open PowerShell or the Windows Terminal and execute the command: winget install MachFramework.Mach. This straightforward process eliminates the need for manual MSI installer downloads. However, it's important to note that to build Mach applications, users must have compatible C++ compilers and CMake installed as development prerequisites.
Once Mach is installed and the environment is prepared, developers can begin crafting HTTP APIs using Mach's concise and expressive syntax. An example provided demonstrates a simple route mapping: app.mapGet("/hello", [] { return mach::ok("Hello from Mach!"); }); While Mach manages the underlying HTTP networking, allowing developers to concentrate on application logic, it leverages Boost.Asio, Boost.Beast, and C++20 coroutines for efficient asynchronous networking.
Mach's development team is currently working on version 1.1.0, concentrating on enhancements to request binding, HTTP configuration, and the overall developer experience. WinGet support represents another milestone in making Mach more discoverable and user-friendly. For those interested in modern C++ backend development, the team encourages trying Mach and welcomes feedback and contributions.
The framework's codebase is freely available on GitHub (https://github.com/machframework/mach) and installation instructions can be found at (https://machframework.dev/getting-started/installation).
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.