Skip to content

Commit f1ea007

Browse files
committed
release: 0.7.1
2 parents 0f5680c + cbb7d38 commit f1ea007

8 files changed

Lines changed: 55 additions & 47 deletions

File tree

CREDITS.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
# Project Dependencies
22
Package: yesvgmap
3-
Version: 0.7.0
3+
Version: 0.7.1
44
Target: x86_64-unknown-linux-gnu
5-
Generated: 2025-05-16 05:58:08 UTC
5+
Generated: 2025-06-27 19:23:13 UTC
66

77
| Package | Version | Author(s) | License |
88
| ---- | ---- | ---- | ---- |
99
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.12 | [Tom Kaitchuck](mailto:tom.kaitchuck@gmail.com) | MIT OR Apache-2.0 |
10-
| [**argyle**](https://github.com/Blobfolio/argyle) | 0.12.3 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
10+
| [**argyle**](https://github.com/Blobfolio/argyle) | 0.13.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
1111
| [bitflags](https://github.com/bitflags/bitflags) | 2.9.1 | The Rust Project Developers | MIT OR Apache-2.0 |
12-
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:alex@alexcrichton.com) | MIT OR Apache-2.0 |
13-
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.10.2 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
14-
| [**dowser**](https://github.com/Blobfolio/dowser) | 0.13.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
12+
| [cfg-if](https://github.com/rust-lang/cfg-if) | 1.0.1 | [Alex Crichton](mailto:alex@alexcrichton.com) | MIT OR Apache-2.0 |
13+
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.13.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
14+
| [**dowser**](https://github.com/Blobfolio/dowser) | 0.15.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
1515
| [fastrand](https://github.com/smol-rs/fastrand) | 2.3.0 | [Stjepan Glavina](mailto:stjepang@gmail.com) | Apache-2.0 OR MIT |
16-
| [**fyi_ansi**](https://github.com/Blobfolio/fyi) | 2.1.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
17-
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.1.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
16+
| [filetime](https://github.com/alexcrichton/filetime) | 0.2.25 | [Alex Crichton](mailto:alex@alexcrichton.com) | MIT OR Apache-2.0 |
17+
| [fyi_ansi](https://github.com/Blobfolio/fyi) | 2.2.1 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
18+
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.3.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
1819
| [getrandom](https://github.com/rust-random/getrandom) | 0.3.3 | The Rand Project Developers | MIT OR Apache-2.0 |
19-
| [libc](https://github.com/rust-lang/libc) | 0.2.172 | The Rust Project Developers | MIT OR Apache-2.0 |
20+
| [libc](https://github.com/rust-lang/libc) | 0.2.174 | The Rust Project Developers | MIT OR Apache-2.0 |
2021
| [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys) | 0.9.4 | [Dan Gohman](mailto:dev@sunfishcode.online) | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT |
2122
| [once_cell](https://github.com/matklad/once_cell) | 1.21.3 | [Aleksey Kladov](mailto:aleksey.kladov@gmail.com) | MIT OR Apache-2.0 |
2223
| [rustix](https://github.com/bytecodealliance/rustix) | 1.0.7 | [Dan Gohman](mailto:dev@sunfishcode.online) and [Jakub Konka](mailto:kubkon@jakubkonka.com) | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT |
2324
| [**svg**](https://github.com/bodoni/svg) | 0.18.0 | [Adam Bryant](mailto:adam.w.bryant@outlook.com), [Felix Schütt](mailto:felix.schuett@maps4print.com), [Felix Zwettler](mailto:f.zwettler@posteo.de), [GeoffreyY](mailto:yeungchingho123@gmail.com), [Gijs Burghoorn](mailto:g.burghoorn@gmail.com), [Ivan Ukhov](mailto:ivan.ukhov@gmail.com), [Jack Greenbaum](mailto:j.greenbaum@computer.org), [Joshua Klein](mailto:mobiusklein@gmail.com), [Mike Wilkerson](mailto:mwilkerson@gmail.com), [Nathan Hüsken](mailto:nathan@wintercloud.de), [Nathaniel Cook](mailto:nvcook42@gmail.com), [Nick Angelou](mailto:angelou.nick@gmail.com), [Nicolas Silva](mailto:nical@fastmail.com), [Nor Khasyatillah](mailto:mazznoer@ymail.com), [OCTronics](mailto:octronics@riseup.net), [Patrick Chieppe](mailto:patrick.chieppe@hotmail.com), [Will Nelson](mailto:will@wnelson.xyz), [Xander Rudelis](mailto:xander.rudelis@gmail.com), [e-matteson](mailto:e.r.matteson@gmail.com), and [kmkzt](mailto:info.pscreator@gmail.com) | Apache-2.0 OR MIT |
2425
| [tempfile](https://github.com/Stebalien/tempfile) | 3.20.0 | [Steven Allen](mailto:steven@stebalien.com), The Rust Project Developers, [Ashley Mannix](mailto:ashleymannix@live.com.au), and [Jason White](mailto:me@jasonwhite.io) | MIT OR Apache-2.0 |
25-
| [unicode-width](https://github.com/unicode-rs/unicode-width) | 0.2.0 | [kwantam](mailto:kwantam@gmail.com) and [Manish Goregaokar](mailto:manishsmail@gmail.com) | MIT OR Apache-2.0 |
26+
| [unicode-width](https://github.com/unicode-rs/unicode-width) | 0.2.1 | [kwantam](mailto:kwantam@gmail.com) and [Manish Goregaokar](mailto:manishsmail@gmail.com) | MIT OR Apache-2.0 |
2627
| [version_check](https://github.com/SergioBenitez/version_check) ⚒️ | 0.9.5 | [Sergio Benitez](mailto:sb@sergio.bz) | MIT OR Apache-2.0 |
27-
| [**write_atomic**](https://github.com/Blobfolio/write_atomic) | 0.6.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
28-
| [zerocopy](https://github.com/google/zerocopy) | 0.8.25 | [Joshua Liebow-Feeser](mailto:joshlf@google.com) and [Jack Wrenn](mailto:jswrenn@amazon.com) | BSD-2-Clause OR Apache-2.0 OR MIT |
28+
| [**write_atomic**](https://github.com/Blobfolio/write_atomic) | 0.7.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
29+
| [zerocopy](https://github.com/google/zerocopy) | 0.8.26 | [Joshua Liebow-Feeser](mailto:joshlf@google.com) and [Jack Wrenn](mailto:jswrenn@amazon.com) | BSD-2-Clause OR Apache-2.0 OR MIT |
2930

3031
### Legend
3132

Cargo.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yesvgmap"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
license = "WTFPL"
55
authors = ["Josh Stoik <josh@blobfolio.com>"]
66
edition = "2024"
@@ -69,22 +69,21 @@ label = "<PATH(s)…>"
6969
description = "One or more file and/or directory paths to crunch and/or (recursively) crawl. Only files with the extension .svg will ultimately be included."
7070

7171
[build-dependencies]
72-
argyle = "=0.12.*"
73-
dowser = "=0.13.*"
72+
argyle = "0.13.*"
73+
dowser = "0.15.*"
7474

7575
[dependencies]
76-
dactyl = "=0.10.*"
77-
dowser = "=0.13.*"
78-
fyi_ansi = "=2.1.*"
76+
dactyl = "0.13.*"
77+
dowser = "0.15.*"
7978
svg = "=0.18.0"
80-
write_atomic = "=0.6.*"
79+
write_atomic = "0.7.*"
8180

8281
[dependencies.argyle]
83-
version = "=0.12.*"
82+
version = "0.13.*"
8483
features = [ "try_paths" ]
8584

8685
[dependencies.fyi_msg]
87-
version = "=2.1.*"
86+
version = "2.3.*"
8887
features = [ "fitted" ]
8988

9089
[profile.release]

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static TAGS: [&str; 74] = [
300300
/// # Build.
301301
///
302302
/// We might as well pre-compile the CLI keys and extensions we're looking for.
303-
pub fn main() {
303+
fn main() {
304304
println!("cargo:rerun-if-env-changed=CARGO_PKG_VERSION");
305305

306306
build_cli();

release/man/yesvgmap.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH "YESVGMAP" "1" "May 2025" "yesvgmap v0.7.0" "User Commands"
1+
.TH "YESVGMAP" "1" "June 2025" "yesvgmap v0.7.1" "User Commands"
22
.SH NAME
3-
YESVGMAP \- Manual page for yesvgmap v0.7.0.
3+
YESVGMAP \- Manual page for yesvgmap v0.7.1.
44
.SH DESCRIPTION
55
Generate SVG sprite maps from individual SVG images.
66
.SS USAGE:

src/error.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# Yesvgmap: Errors
33
*/
44

5-
use fyi_ansi::{
6-
ansi,
7-
csi,
8-
dim,
5+
use fyi_msg::{
6+
fyi_ansi::{
7+
ansi,
8+
csi,
9+
dim,
10+
},
11+
Msg,
912
};
10-
use fyi_msg::Msg;
1113
use std::{
1214
error,
1315
ffi::OsString,

src/main.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ use error::{
6969
SvgError,
7070
SvgErrorKind,
7171
};
72-
use fyi_ansi::{
73-
bold,
74-
csi,
75-
dim,
72+
use fyi_msg::{
73+
fyi_ansi::{
74+
bold,
75+
csi,
76+
dim,
77+
},
78+
Msg,
7679
};
77-
use fyi_msg::Msg;
7880
use parse::{
7981
normalize_attr_case,
8082
SvgParser,

src/parse/mod.rs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ impl<'a> Iterator for StyleSplitter<'a> {
112112
}
113113
}
114114

115+
impl std::iter::FusedIterator for StyleSplitter<'_> {}
116+
115117

116118

117119
/// # SVG Parser Wrapper.
@@ -276,8 +278,8 @@ impl<'a> SvgParser<'a> {
276278

277279
// Tags with a new start require recursion.
278280
SvgPart::Tag(tag, Type::Start, attr) =>
279-
if let Some(next) = self.next_element_recurse(tag, attr) {
280-
if ! is_empty(&next) { out.append(next); }
281+
if let Some(next) = self.next_element_recurse(tag, attr) && ! is_empty(&next) {
282+
out.append(next);
281283
},
282284

283285
// Whatever else there might be, we're not interested.
@@ -407,6 +409,8 @@ impl<'a> Iterator for SvgParser<'a> {
407409
}
408410
}
409411

412+
impl std::iter::FusedIterator for SvgParser<'_> {}
413+
410414

411415

412416
/// # Is Empty Element?
@@ -463,17 +467,17 @@ fn normalize_attributes(attr: &mut Attributes) {
463467
if let Some((tag, raw)) = attr.remove_entry("style") {
464468
let mut chunks: Vec<&str> = StyleSplitter(&raw).collect();
465469
chunks.retain(|v| {
466-
if let Some((k2, v2)) = v.split_once(':') {
467-
// If the style key matches a known attribute (other than
468-
// display) convert it to an attribute.
469-
if let Ok(k3) = normalize_attr_case(k2) {
470-
if k3 != "display" {
471-
attr.insert(k3.to_owned(), v2.trim().into());
472-
return false;
473-
}
474-
}
470+
// If the style key matches a known attribute (other than
471+
// display) convert it to an attribute.
472+
if
473+
let Some((k2, v2)) = v.split_once(':') &&
474+
let Ok(k3) = normalize_attr_case(k2) &&
475+
k3 != "display"
476+
{
477+
attr.insert(k3.to_owned(), v2.trim().into());
478+
false
475479
}
476-
true
480+
else { true }
477481
});
478482

479483
// Add back the style(s) we couldn't move.

src/sprite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{
99
SvgParser,
1010
};
1111
use dowser::Dowser;
12-
use fyi_ansi::{
12+
use fyi_msg::fyi_ansi::{
1313
ansi,
1414
csi,
1515
dim,

0 commit comments

Comments
 (0)