Skip to content

chore: release v0.4.1#154

Merged
mergify[bot] merged 1 commit into
mainfrom
release-plz-2026-03-06T21-15-42Z
Mar 6, 2026
Merged

chore: release v0.4.1#154
mergify[bot] merged 1 commit into
mainfrom
release-plz-2026-03-06T21-15-42Z

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Mar 6, 2026

🤖 New release

  • libmagic-rs: 0.4.0 -> 0.4.1 (✓ API compatible changes)
Changelog

[0.4.1] - 2026-03-06

Refactor

  • evaluator: Split mod.rs into focused submodules (#153)


This PR was generated with release-plz.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 6, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 6, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Do not merge outdated PRs

Wonderful, this rule succeeded.

Make sure PRs are within 10 commits of the base branch before merging

  • #commits-behind <= 3

@mergify mergify Bot merged commit dcddf1b into main Mar 6, 2026
6 checks passed
@dosubot dosubot Bot added the evaluator Rule evaluation engine and logic label Mar 6, 2026
@mergify mergify Bot deleted the release-plz-2026-03-06T21-15-42Z branch March 6, 2026 21:17
@dosubot
Copy link
Copy Markdown
Contributor

dosubot Bot commented Mar 6, 2026

Documentation Updates

2 document(s) were updated by changes in this PR:

evaluator
View Changes
@@ -26,13 +26,13 @@
 The evaluator module is organized into focused submodules:
 
 - **`evaluator/engine/mod.rs`** - Core evaluation logic (`evaluate_single_rule`, `evaluate_rules`, `evaluate_rules_with_config`)
-- **`evaluator/mod.rs`** - Public API surface (types, context, re-exports)
+- **`evaluator/mod.rs`** - Public API surface (`EvaluationContext`, `RuleMatch`); re-exports evaluation functions from the engine submodule
 - **`evaluator/offset/mod.rs`** - Offset resolution
 - **`evaluator/operators/mod.rs`** - Operator application
 - **`evaluator/types.rs`** - Type reading and coercion
 - **`evaluator/strength.rs`** - Rule strength calculation
 
-From a public API perspective, all types and functions are imported from the `evaluator` module as before -- the internal organization is transparent to library users.
+The evaluation functions (`evaluate_single_rule`, `evaluate_rules`, `evaluate_rules_with_config`) were extracted from `evaluator/mod.rs` into the `engine` submodule and are re-exported at the top level for backward compatibility. From a public API perspective, all types and functions are imported from the `evaluator` module as before -- the internal organization is transparent to library users.
 
 ## Core Components
 
GETTING_STARTED
View Changes
@@ -21,7 +21,7 @@
 
 ```toml
 [dependencies]
-libmagic-rs = "0.4.0"
+libmagic-rs = "0.4.1"
 ```
 
 **Note:** Version 0.4.0 introduces breaking changes. If upgrading from 0.3.x, the `Operator` enum gained three new variants (`BitwiseXor`, `BitwiseNot`, `AnyValue`) for bitwise and any-value operations. Exhaustive pattern matching on `Operator` requires updates.
@@ -67,7 +67,7 @@
 
 ```toml
 [dependencies]
-libmagic-rs = "0.4.0"
+libmagic-rs = "0.4.1"
 ```
 
 #### Step 3: Write Code

How did I do? Any feedback?  Join Discord

mergify Bot pushed a commit that referenced this pull request Mar 6, 2026
…ed guide (#155)

Update documentation for
#154

Updated the Getting Started guide with comprehensive installation, quick
start, and usage patterns for both library and CLI interfaces. Refined
the Evaluator Engine documentation to clarify the refactored module
organization, distinguishing the public API surface in
`evaluator/mod.rs` from the core implementation in
`evaluator/engine/mod.rs`, ensuring internal improvements remain
transparent to library users.

_Generated by [Dosu](https://dosu.dev)_

Co-authored-by: dosubot[bot] <131922026+dosubot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

evaluator Rule evaluation engine and logic size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants