chore: release v0.4.1#154
Merged
Merged
Conversation
Contributor
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Do not merge outdated PRsWonderful, this rule succeeded.Make sure PRs are within 10 commits of the base branch before merging
|
Contributor
|
Documentation Updates 2 document(s) were updated by changes in this PR: evaluatorView 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_STARTEDView 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 |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 New release
libmagic-rs: 0.4.0 -> 0.4.1 (✓ API compatible changes)Changelog
This PR was generated with release-plz.