Bootstrap a Swim Application using swim-create

The swim-create CLI tool lets you get started quickly by creating a basic skeleton for a swim project.

Installation

To install the latest version of the CLI tool you could run:

curl -L https://github.com/nstreamio/swim-create/releases/latest/download/swim-create-x86_64-unknown-linux-gnu.tar.gz | sudo tar -xz -C /usr/local/bin

or alternatively download the latest release from: https://github.com/nstreamio/swim-create/releases/latest/

Usage

You can then create a Swim Rust project using:

swim-create -t rust <PROJECT_NAME>

Description

A brief description of the most important files and their function:

main.rs - Contains the Swim plane definition and the entry point.

utils.rs - Contains helper methods for running the Swim server and for logging.

Cargo.toml - Contains the project name, the Swim version and the project dependencies.