Skip to content

Commit

Permalink
[build] bump to major release v0.1.1 → v1.0.0 (#12)
Browse files Browse the repository at this point in the history
* [ci/cd] github cd workflow with cargo publish

* [build] bump to major version v0.1.1 → v1.0.0

* [fix] syntax error in example docs

* [fix] missing name on cd step

* [fix] cargo fmt and clippy lint changes
  • Loading branch information
wilhelmagren committed Dec 19, 2023
1 parent b42ba92 commit 77b2773
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CD

on:
release:
types: [ published ]

jobs:
deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
rust: [ stable ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Cargo publish
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "padder"
version = "0.1.1"
version = "1.0.0"
edition = "2021"
description = "Efficient data formatting and padding, done right, the rusty way."
description = "Highly efficient data and string formatting library for Rust."
authors = [
"Wilhelm Ågren <wilhelmagren98@gmail.com>",
]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Last updated: 2023-12-19
*/

///
/// Highly efficient data and string formatting library for Rust.
///
/// Pad and format string slices and generic vectors efficiently with minimal memory
Expand All @@ -41,6 +42,7 @@
/// +---+---+---+ +---+---+---+---+---+---+
///
/// ```
/// use padder::*;
/// let output: String = "abc".pad(6, Alignment::Left, Symbol::Whitespace);
/// ```
///
Expand Down

0 comments on commit 77b2773

Please sign in to comment.