From eca3f383ebcf27e6238ea961030e42ec0b1d9723 Mon Sep 17 00:00:00 2001 From: Volodymyr Yavdoshenko Date: Sat, 10 Jan 2026 21:46:45 +0200 Subject: [PATCH 1/2] fix: ci update --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 064d421..9153d05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,20 @@ on: branches: [ main ] jobs: + format: + name: Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + + - name: Check formatting + run: python3 red/scripts/format_rust.py --check + ubuntu: runs-on: ubuntu-latest steps: From 26c76a5cecd1998888d78b475fd18c211a2b657b Mon Sep 17 00:00:00 2001 From: Volodymyr Yavdoshenko Date: Sat, 10 Jan 2026 22:07:18 +0200 Subject: [PATCH 2/2] fix: add crate.io integration --- README.md | 5 +++++ red/Cargo.lock | 2 +- red/Cargo.toml | 15 ++++++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3689db..fd2453f 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,11 @@ Pre-built binaries are available on the [Releases](https://github.com/vyavdoshen ### Install +**From crates.io:** +```bash +cargo install red-sed +``` + **Linux:** ```bash curl -LO https://github.com/vyavdoshenko/red/releases/latest/download/red-linux-x86_64-musl.tar.gz diff --git a/red/Cargo.lock b/red/Cargo.lock index 868c6ca..7bc1bf4 100644 --- a/red/Cargo.lock +++ b/red/Cargo.lock @@ -469,7 +469,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" [[package]] -name = "red" +name = "red-sed" version = "1.0.0" dependencies = [ "anyhow", diff --git a/red/Cargo.toml b/red/Cargo.toml index dc00fea..4be2dcb 100644 --- a/red/Cargo.toml +++ b/red/Cargo.toml @@ -1,7 +1,20 @@ [package] -name = "red" +name = "red-sed" version = "1.0.0" edition = "2021" +description = "An experimental drop-in replacement for GNU sed, written in Rust" +license = "MIT" +repository = "https://github.com/vyavdoshenko/red" +keywords = ["sed", "text-processing", "cli", "unix"] +categories = ["command-line-utilities", "text-processing"] + +[lib] +name = "red" +path = "src/lib.rs" + +[[bin]] +name = "red" +path = "src/main.rs" [features] default = []