swift-nio

(★ 8,509)

Event-driven network application framework for high performance protocol servers & clients, non-blocking.

File Explorer

  • .editorconfig
  • .git-blame-ignore-revs
  • .gitattributes
  • .gitignore
  • .licenseignore
  • .mailfilter
  • .mailmap
  • .spi.yml
  • .swift-format
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • CONTRIBUTORS.txt
  • LICENSE.txt
  • NOTICE.txt
  • Package.swift
  • README.md
  • SECURITY.md

# Installation Guide

swift
Prerequisites

Setup Steps

git clone https://github.com/apple/swift-nio.git

Clone the repository locally.

cd swift-nio

Navigate to the project directory.

swift build

Build the Swift package.

swift test

Run the tests.

Key Commands

swift build

Builds the source code of the project.

swift test

Runs the test cases included in the package.

swift package clean

Cleans build artifacts.

Swift 6.1 or higher is required to successfully build and test the project.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

swift

View Details ▼

Create, run, and build Swift projects.

swift repl

Start a REPL (interactive shell):

swift {{file.swift}}

Execute a program:

swift package init

Start a new project with the package manager:

🔍

apt-get

View Details ▼

Debian and Ubuntu package management utility.
Search for packages using `apt-cache`.
It is recommended to use `apt` when used interactively in Ubuntu versions 16.04 and later.

sudo apt-get update

Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):

sudo apt-get install {{package}}

Install a package, or update it to the latest available version:

sudo apt-get remove {{package}}

Remove a package:

🔍

dnf install

View Details ▼

Install packages on Red Hat-based distributions.

sudo dnf {{[in|install]}} {{package1 package2 ...}}

Install packages by name:

sudo dnf {{[in|install]}} {{path/to/file}}

Install a package from a local file:

sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}

Install a package from the internet:

// repository documentation