Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: CI

permissions: read-all

on:
push:
branches:
- main
pull_request:
merge_group:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust from apt
run: |
sudo apt update
sudo apt install -y cargo rustc

- name: Build
run: cargo build --workspace --all-targets

- name: Run tests
run: cargo test --workspace --all-targets

format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust from apt
run: |
sudo apt update
sudo apt install -y cargo rustc rustfmt

- name: Check formatting
run: cargo fmt --all -- --check

clippy:
needs: format
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust from apt
run: |
sudo apt update
sudo apt install -y cargo rustc rust-clippy

- name: Run clippy
run: cargo clippy --workspace --all-targets -- --deny warnings

docs:
needs: clippy
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D warnings"

steps:
- uses: actions/checkout@v4

- name: Install Rust from apt
run: |
sudo apt update
sudo apt install -y cargo rustc

- name: Build docs
run: cargo doc --no-deps --document-private-items

audit:
needs: clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust from apt
run: |
sudo apt update
sudo apt install -y cargo rustc

- name: Install cargo-audit
run: cargo install cargo-audit --locked

- name: Run audit
run: cargo audit
22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

23 changes: 23 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (C) 2025 Rust Swifties Team

This project is a Rust rewrite of net-tools, based on the original
net-tools project available at: https://sourceforge.net/projects/net-tools/

Original net-tools copyright holders:
Copyright (C) 1988-1994 MicroWalt Corporation
Copyright (C) 1995-1996 Bernd Eckenfels
Copyright (C) 1997-2000 Andi Kleen
Copyright (C) 1997-2000 Donald Becker

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, see <https://www.gnu.org/licenses/>.
Loading