Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ SPDX-License-Identifier: Apache-2.0

All notable changes to this project will be documented in this file.

## [1.0.1] - 2025-06-30

### Features

- Add trait Hash to BaseUrl

### Refactor

- Fix clippy warnings

## [1.0.0] - 2025-04-24

This version sets a contract to follow a Rust-style semver versioning
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[package]
name = "famedly_rust_utils"
description = "Various rust utility functions and types"
version = "1.0.0"
version = "1.0.1"
authors = []
edition = "2021"
resolver = "2"
Expand All @@ -17,7 +17,11 @@ documentation = "https://docs.rs/famedly_rust_utils/latest"
all-features = true

[dependencies]
figment = { version = "0.10.19", features = ["env", "test", "yaml"], optional = true }
figment = { version = "0.10.19", features = [
"env",
"test",
"yaml",
], optional = true }
reqwest = { version = "0.12.12", optional = true }
schemars = { version = "0.8.22", optional = true }
serde = { version = "1.0.210", features = ["derive"], optional = true }
Expand Down
5 changes: 4 additions & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@

[changelog]
# template for the changelog header
header = """
header = """<!--
SPDX-FileCopyrightText: 2025 Famedly GmbH ([email protected])\n
SPDX-License-Identifier: Apache-2.0
-->\n
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
Expand Down
2 changes: 1 addition & 1 deletion src/base_url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::GenericCombinators;
/// assert_eq!(foo.base_url.as_str(), "http://example.com/");
/// ```
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[derive(Debug, PartialEq, Eq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone, Hash)]
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
#[repr(transparent)]
#[cfg_attr(feature = "serde", serde(transparent))]
Expand Down
6 changes: 2 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
eprintln!("\n{}note{}: {}", ANSI_GREEN, ANSI_RESET, note.as_ref());
}

eprintln!("{}error{}: invalid configuration:", ANSI_RED, ANSI_RESET,);
eprintln!("{ANSI_RED}error{ANSI_RESET}: invalid configuration:",);

Check warning on line 53 in src/config.rs

View check run for this annotation

Codecov / codecov/patch

src/config.rs#L53

Added line #L53 was not covered by tests

for error in *error {
eprintln!("- {error}");
Expand Down Expand Up @@ -96,9 +96,7 @@
.merge(figment::providers::Yaml::file(cwd.join("config.yaml")))
} else {
eprintln!(
"{}warning{}: could not access current working directory; configuration files will be ignored",
ANSI_YELLOW,
ANSI_RESET
"{ANSI_YELLOW}warning{ANSI_RESET}: could not access current working directory; configuration files will be ignored"

Check warning on line 99 in src/config.rs

View check run for this annotation

Codecov / codecov/patch

src/config.rs#L99

Added line #L99 was not covered by tests
);

Figment::new()
Expand Down
2 changes: 1 addition & 1 deletion src/level_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ fn test_serde() {
assert_eq!(tlvl, LF::from(lvl));

let lvl: String = serde_json::to_string(&lvl).unwrap();
assert_eq!(lvl, format!(r#""{}""#, s));
assert_eq!(lvl, format!(r#""{s}""#));
}
}
Loading