Updating Vapor's Templates for Swift 5.8
The template now has a minimum supported Swift version of 5.8 to allow you to easily use the latest Swift features. The Dockerfile has been updated to use Swift 5.8 as well, so deploying should be as easy as ever.
→ blog.vapor.codes/posts/async-template-updates/
The Vapor team has updated its project templates to support Swift 5.8, adopting a unified target with the @main
syntax for application entry points, aligning with Swift’s modern features and enabling asynchronous setup functions.
The Dockerfile now uses Swift 5.8 for seamless deployment, and the Vapor Toolbox has been streamlined to focus on the vapor new
command, with deprecated commands like build, test, and run now favoring direct Swift Package Manager usage.
Documentation reflects these changes, and the Toolbox detects legacy Run
or new App
targets for compatibility. Ongoing work aims to fully support asynchronous entry points by replacing the temporary runFromAsyncMainEntrypoint()
workaround, with further template updates planned. Users are encouraged to report issues on GitHub or Discord to refine the experience.
Category:
Tags:
Year: