Skip to content

Commit

Permalink
release: 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Feb 23, 2024
2 parents 0dde23c + d28253a commit ceeb1d6
Show file tree
Hide file tree
Showing 11 changed files with 315 additions and 270 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@ jobs:
run: |
cargo test --all-features --target ${{ matrix.target }}
cargo test --release --all-features --target ${{ matrix.target }}
- name: Tests (Library Only)
run: |
cargo test -p guff_css --target ${{ matrix.target }}
cargo test --release -p guff_css --target ${{ matrix.target }}
16 changes: 8 additions & 8 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Project Dependencies
Package: guff
Version: 0.3.0
Generated: 2024-02-14 19:14:34 UTC
Version: 0.3.1
Generated: 2024-02-23 18:29:14 UTC

| Package | Version | Author(s) | License |
| ---- | ---- | ---- | ---- |
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.8 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
| [argyle](https://github.com/Blobfolio/argyle) | 0.7.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.9 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
| [argyle](https://github.com/Blobfolio/argyle) | 0.7.2 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [bitflags](https://github.com/bitflags/bitflags) | 2.4.2 | The Rust Project Developers | Apache-2.0 or MIT |
| [byteorder](https://github.com/BurntSushi/byteorder) | 1.5.0 | [Andrew Gallant](mailto:[email protected]) | MIT or Unlicense |
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
Expand All @@ -24,19 +24,19 @@
| [equivalent](https://github.com/cuviper/equivalent) | 1.0.1 | | Apache-2.0 or MIT |
| [fastrand](https://github.com/smol-rs/fastrand) | 2.0.1 | [Stjepan Glavina](mailto:[email protected]) | Apache-2.0 or MIT |
| [fxhash](https://github.com/cbreeden/fxhash) | 0.2.1 | [cbreeden](mailto:[email protected]) | Apache-2.0 or MIT |
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.12.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.13.1 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [getrandom](https://github.com/rust-random/getrandom) | 0.2.12 | The Rand Project Developers | Apache-2.0 or MIT |
| [grass](https://github.com/connorskees/grass) | 0.13.2 | [Connor Skees](mailto:[email protected]) | MIT |
| [grass_compiler](https://github.com/connorskees/grass) | 0.13.2 | [Connor Skees](mailto:[email protected]) | MIT |
| [guff_css](https://github.com/Blobfolio/guff) | 0.3.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
| [guff_css](https://github.com/Blobfolio/guff) | 0.3.1 | [Josh Stoik](mailto:[email protected]) | WTFPL |
| [hashbrown](https://github.com/rust-lang/hashbrown) | 0.13.2 | [Amanieu d'Antras](mailto:[email protected]) | Apache-2.0 or MIT |
| [hashbrown](https://github.com/rust-lang/hashbrown) | 0.14.3 | [Amanieu d'Antras](mailto:[email protected]) | Apache-2.0 or MIT |
| [indexmap](https://github.com/indexmap-rs/indexmap) | 2.2.3 | | Apache-2.0 or MIT |
| [itertools](https://github.com/rust-itertools/itertools) | 0.10.5 | bluss | Apache-2.0 or MIT |
| [itoa](https://github.com/dtolnay/itoa) | 1.0.10 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
| [lasso](https://github.com/Kixiron/lasso) | 0.7.2 | [Chase Wilson](mailto:[email protected]) | Apache-2.0 or MIT |
| [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs) | 1.4.0 | [Marvin Löbel](mailto:[email protected]) | Apache-2.0 or MIT |
| [lightningcss](https://github.com/parcel-bundler/lightningcss) | 1.0.0-alpha.53 | [Devon Govett](mailto:[email protected]) | MPL-2.0 |
| [lightningcss](https://github.com/parcel-bundler/lightningcss) | 1.0.0-alpha.54 | [Devon Govett](mailto:[email protected]) | MPL-2.0 |
| [log](https://github.com/rust-lang/log) | 0.4.20 | The Rust Project Developers | Apache-2.0 or MIT |
| [once_cell](https://github.com/matklad/once_cell) | 1.19.0 | [Aleksey Kladov](mailto:[email protected]) | Apache-2.0 or MIT |
| [oxford_join](https://github.com/Blobfolio/oxford_join) | 0.2.9 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
Expand All @@ -59,7 +59,7 @@
| [siphasher](https://github.com/jedisct1/rust-siphash) | 0.3.11 | [Frank Denis](mailto:[email protected]) | Apache-2.0 or MIT |
| [smallvec](https://github.com/servo/rust-smallvec) | 1.13.1 | The Servo Project Developers | Apache-2.0 or MIT |
| [syn](https://github.com/dtolnay/syn) | 1.0.109 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
| [syn](https://github.com/dtolnay/syn) | 2.0.48 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
| [syn](https://github.com/dtolnay/syn) | 2.0.50 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
| [tempfile](https://github.com/Stebalien/tempfile) | 3.10.0 | [Steven Allen](mailto:[email protected]), The Rust Project Developers, [Ashley Mannix](mailto:[email protected]), and [Jason White](mailto:[email protected]) | Apache-2.0 or MIT |
| [trimothy](https://github.com/Blobfolio/trimothy) | 0.2.2 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [unicode-ident](https://github.com/dtolnay/unicode-ident) | 1.0.12 | [David Tolnay](mailto:[email protected]) | Apache-2.0 AND Unicode-DFS-2016 or MIT |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Guff is an x86-64 Linux CLI tool providing both SASS/SCSS compilation and CSS parsing/minification. It is a faster, lighter, compressier alternative to chaining together multiple tools like `sassc` and `csso`.

Note: both the SASS/SCSS compilation and CSS minification features are works in progress, and might change subtly between releases. To be safe, CSS generated by Guff should be tested in a staging environment before being pushed to production.
Under the hood, it merely marries the SCSS functionality of [grass](https://github.com/connorskees/grass) with the compressive capabilities of [Lightning CSS](lightningcss). If Guff is too opinionated for you or incompatible with your platform, take a look at those projects; they both have frontends of their own. ;)



Expand Down
6 changes: 3 additions & 3 deletions guff/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "guff"
version = "0.3.0"
version = "0.3.1"
license = "WTFPL"
authors = ["Josh Stoik <[email protected]>"]
edition = "2021"
Expand Down Expand Up @@ -67,8 +67,8 @@ description = "The path to save the minified output to. If omitted, the result w
path = true

[dependencies]
argyle = "0.7.*"
fyi_msg = "0.12.*"
argyle = "0.7.2"
fyi_msg = "0.13.*"
write_atomic = "0.5.*"

[dependencies.guff_css]
Expand Down
8 changes: 8 additions & 0 deletions guff/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ fn _main() -> Result<(), GuffError> {
// Parse CLI arguments.
let args = Argue::new(FLAG_HELP | FLAG_REQUIRED | FLAG_VERSION)?;

// Check for invalid arguments.
if let Some(boo) = args.check_keys(
&[b"--expanded", b"-e"],
&[b"--browsers", b"--input", b"--output", b"-b", b"-i", b"-o"],
) {
return Err(GuffError::Cli(String::from_utf8_lossy(boo).into_owned()));
}

// In and out.
let input = args.option2_os(b"-i", b"--input").ok_or(GuffError::NoSource)?;
let output = args.option2_os(b"-o", b"--output");
Expand Down
8 changes: 8 additions & 0 deletions guff_css/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@



## [0.3.1](https://github.com/Blobfolio/guff/releases/tag/v0.3.1) - 2024-02-23

### Changed

* Bump `lightningcss` to `alpha54`



## [0.3.0](https://github.com/Blobfolio/guff/releases/tag/v0.3.0) - 2024-02-14

### Changed
Expand Down
6 changes: 3 additions & 3 deletions guff_css/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "guff_css"
version = "0.3.0"
version = "0.3.1"
license = "WTFPL"
authors = ["Josh Stoik <[email protected]>"]
edition = "2021"
Expand All @@ -20,15 +20,15 @@ oxford_join = "0.2.*"
trimothy = "0.2.*"

[dependencies.argyle]
version = "0.7.*"
version = "0.7.2"
optional = true

[dependencies.grass]
version = "0.13.*"
default-features = false

[dependencies.lightningcss]
version = "=1.0.0-alpha.53"
version = "=1.0.0-alpha.54"
default-features = false
features = [ "grid" ]

Expand Down
6 changes: 1 addition & 5 deletions guff_css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ Refer to the [documentation](https://docs.rs/guff_css/) for usage and other deta

**Compatibility**

This library is only compatible with Unix platforms. For broader support, consider using [`grass`](https://crates.io/crates/grass) and [`lightningcss`](https://crates.io/crates/lightningcss) directly.

**Work In Progress**

Both the SASS/SCSS compilation and CSS minification features are works in progress, and might change subtly between releases. To be safe, CSS generated by Guff should be tested in a staging environment before being pushed to production.
This library is only compatible with Unix platforms. For broader support, consider using [`grass`](https://crates.io/crates/grass) and/or [`lightningcss`](https://crates.io/crates/lightningcss) directly.
Loading

0 comments on commit ceeb1d6

Please sign in to comment.