Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Jul 15, 2023
1 parent 6fb4bd0 commit 150c9af
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
ARCHIVE_TYPES: ${{ matrix.archive }}
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CRATE_AUTH_TOKEN }}
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "pigment"
version = "0.2.0"
name = "pigment64"
version = "0.2.1"
edition = "2021"

[dependencies]
png = "0.17.7"
clap = { version = "4.1.11", features = ["derive"] }
png = "0.17.9"
clap = { version = "4.1.12", features = ["derive"] }
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ fn main() {

// Convert the image
let bin = if let Format::Palette = args.format {
pigment::get_palette_rgba16(&mut input_reader)
pigment64::get_palette_rgba16(&mut input_reader)
} else {
let mut image = pigment::Image::read_png(&mut input_reader);
let mut image = pigment64::Image::read_png(&mut input_reader);

if args.flip_x || args.flip_y {
image = image.flip(args.flip_x, args.flip_y);
Expand Down
2 changes: 1 addition & 1 deletion tests/color.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use pigment::color::Color;
use pigment64::color::Color;

#[test]
fn test_color_new() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use pigment::*;
use pigment64::*;
use std::io::Cursor;

// TODO: convert input into all permutations of color type and bit depth
Expand Down

0 comments on commit 150c9af

Please sign in to comment.