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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ All notable changes to this project will be documented in this file.
- `masterror::Error` now uses the in-tree derive, removing the dependency on
`thiserror` while keeping the same runtime behaviour and diagnostics.

## [0.5.2] - 2025-09-25

### Fixed
- Added a workspace `deny.toml` allow-list for MIT, Apache-2.0 and Unicode-3.0
licenses so `cargo deny` accepts existing dependencies.
- Declared SPDX license expressions for the internal `masterror-derive` and
`masterror-template` crates to avoid unlicensed warnings.

## [0.5.1] - 2025-09-24

### Changed
Expand Down Expand Up @@ -169,6 +177,7 @@ All notable changes to this project will be documented in this file.
- **MSRV:** 1.89
- **No unsafe:** the crate forbids `unsafe`.

[0.5.2]: https://github.com/RAprogramm/masterror/releases/tag/v0.5.2
[0.5.1]: https://github.com/RAprogramm/masterror/releases/tag/v0.5.1
[0.5.0]: https://github.com/RAprogramm/masterror/releases/tag/v0.5.0
[0.4.0]: https://github.com/RAprogramm/masterror/releases/tag/v0.4.0
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.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "masterror"
version = "0.5.1"
version = "0.5.2"
rust-version = "1.90"
edition = "2024"
description = "Application error types and response mapping"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Stable categories, conservative HTTP mapping, no `unsafe`.

~~~toml
[dependencies]
masterror = { version = "0.5.1", default-features = false }
masterror = { version = "0.5.2", default-features = false }
# or with features:
# masterror = { version = "0.5.1", features = [
# masterror = { version = "0.5.2", features = [
# "axum", "actix", "openapi", "serde_json",
# "sqlx", "reqwest", "redis", "validator",
# "config", "tokio", "multipart", "teloxide",
Expand Down Expand Up @@ -66,10 +66,10 @@ masterror = { version = "0.5.1", default-features = false }
~~~toml
[dependencies]
# lean core
masterror = { version = "0.5.1", default-features = false }
masterror = { version = "0.5.2", default-features = false }

# with Axum/Actix + JSON + integrations
# masterror = { version = "0.5.1", features = [
# masterror = { version = "0.5.2", features = [
# "axum", "actix", "openapi", "serde_json",
# "sqlx", "reqwest", "redis", "validator",
# "config", "tokio", "multipart", "teloxide",
Expand Down Expand Up @@ -261,13 +261,13 @@ assert_eq!(resp.status, 401);
Minimal core:

~~~toml
masterror = { version = "0.5.1", default-features = false }
masterror = { version = "0.5.2", default-features = false }
~~~

API (Axum + JSON + deps):

~~~toml
masterror = { version = "0.5.1", features = [
masterror = { version = "0.5.2", features = [
"axum", "serde_json", "openapi",
"sqlx", "reqwest", "redis", "validator", "config", "tokio"
] }
Expand All @@ -276,7 +276,7 @@ masterror = { version = "0.5.1", features = [
API (Actix + JSON + deps):

~~~toml
masterror = { version = "0.5.1", features = [
masterror = { version = "0.5.2", features = [
"actix", "serde_json", "openapi",
"sqlx", "reqwest", "redis", "validator", "config", "tokio"
] }
Expand Down
4 changes: 2 additions & 2 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

~~~toml
[dependencies]
masterror = { version = "0.5.1", default-features = false }
masterror = { version = "0.5.2", default-features = false }
# или с нужными интеграциями
# masterror = { version = "0.5.1", features = [
# masterror = { version = "0.5.2", features = [
# "axum", "actix", "openapi", "serde_json",
# "sqlx", "reqwest", "redis", "validator",
# "config", "tokio", "multipart", "teloxide",
Expand Down
27 changes: 27 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[advisories]
ignore = []
git-fetch-with-cli = true

[licenses]
allow = [
"Apache-2.0",
"MIT",
]
confidence-threshold = 0.8

[[licenses.exceptions]]
crate = "unicode-ident"
allow = ["Apache-2.0", "MIT", "Unicode-3.0"]

[licenses.private]
ignore = false

[bans]
multiple-versions = "warn"
wildcards = "deny"

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = []

3 changes: 2 additions & 1 deletion masterror-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "masterror-derive"
rust-version = "1.90"
version = "0.1.0"
edition = "2024"
license = "MIT OR Apache-2.0"

[lib]
proc-macro = true
Expand All @@ -11,4 +12,4 @@ proc-macro = true
proc-macro2 = "1"
quote = "1"
syn = { version = "2", features = ["full", "extra-traits"] }
masterror-template = { path = "../masterror-template" }
masterror-template = { path = "../masterror-template", version = "0.1" }
1 change: 1 addition & 0 deletions masterror-template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "masterror-template"
version = "0.1.0"
rust-version = "1.90"
edition = "2024"
license = "MIT OR Apache-2.0"
publish = false

[dependencies]
Loading