Skip to content

Commit d8bd9b7

Browse files
codedeviateclaude
andcommitted
chore: 0.9.1 — publish to crates.io as batty-cat
The crates.io names `batty` and `batty-cli` were both already taken, so the published crate is `batty-cat`. The installed binary stays `batty` via an explicit [[bin]] block, so `cargo install batty-cat` gives users a `batty` executable. - Rename package to `batty-cat`; pin `[[bin]] name = "batty"`. - Bump version 0.9.0 → 0.9.1 (no behavior change; metadata-only release). - Add `documentation = "https://docs.rs/batty-cat"`. - Tidy `exclude` list (sorted, plus `.idea/`, `.git/`). - README: new "Cargo (crates.io)" install section between Homebrew and build-from-source. Validated via `cargo publish --dry-run` (20 files, 51.6 KiB compressed). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a472109 commit d8bd9b7

3 files changed

Lines changed: 33 additions & 20 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
[package]
2-
name = "batty"
3-
version = "0.9.0"
4-
edition = "2021"
5-
rust-version = "1.86"
6-
authors = ["Thomas Björk <codedv8@gmail.com>"]
7-
description = "A cat clone with syntax highlighting, git integration, and Rhai support"
8-
license = "MIT"
9-
readme = "README.md"
10-
repository = "https://github.com/codedeviate/batty"
11-
homepage = "https://github.com/codedeviate/batty"
12-
keywords = ["cat", "bat", "syntax-highlighting", "cli", "terminal"]
13-
categories = ["command-line-utilities"]
14-
exclude = [
2+
name = "batty-cat"
3+
version = "0.9.1"
4+
edition = "2021"
5+
rust-version = "1.86"
6+
authors = ["Thomas Björk <codedv8@gmail.com>"]
7+
description = "A cat clone with syntax highlighting, git integration, and Rhai support"
8+
license = "MIT"
9+
readme = "README.md"
10+
repository = "https://github.com/codedeviate/batty"
11+
homepage = "https://github.com/codedeviate/batty"
12+
documentation = "https://docs.rs/batty-cat"
13+
keywords = ["cat", "bat", "syntax-highlighting", "cli", "terminal"]
14+
categories = ["command-line-utilities"]
15+
exclude = [
1516
".claude/",
16-
"OUT-OF-SCOPE.md",
17-
"CLAUDE.md",
18-
"BREW.md",
19-
"homebrew/",
2017
".github/",
21-
"/.gitignore",
18+
".gitignore",
19+
".git/",
20+
".idea/",
21+
"CLAUDE.md",
22+
"OUT-OF-SCOPE.md",
2223
]
2324

25+
[[bin]]
26+
name = "batty"
27+
path = "src/main.rs"
28+
2429
[dependencies]
2530
clap = { version = "4", features = ["derive", "env"] }
2631
syntect = { version = "5", default-features = false, features = ["parsing", "regex-onig", "yaml-load"] }

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ brew install batty
2525

2626
The formula builds from source via `cargo`, so a Rust toolchain is pulled in as a build-time dependency and removed afterwards.
2727

28+
### Cargo (crates.io)
29+
30+
```bash
31+
cargo install batty-cat
32+
```
33+
34+
The crate is published as `batty-cat` on crates.io because the `batty` and `batty-cli` names were already taken — the installed binary is still `batty`.
35+
2836
### Build from source
2937

3038
```bash

0 commit comments

Comments
 (0)