Skip to content

chore: release v0.9.0#305

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
release-plz-2026-05-29T21-57-00Z
Open

chore: release v0.9.0#305
github-actions[bot] wants to merge 1 commit into
mainfrom
release-plz-2026-05-29T21-57-00Z

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 29, 2026

🤖 New release

  • libmagic-rs: 0.8.0 -> 0.9.0 (⚠ API breaking changes)

libmagic-rs breaking changes

--- failure function_missing: pub fn removed or renamed ---

Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/function_missing.ron

Failed in:
  function libmagic_rs::evaluator::types::read_float, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/float.rs:33
  function libmagic_rs::evaluator::types::coerce_value_to_type, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/mod.rs:523
  function libmagic_rs::evaluator::types::read_byte, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/numeric.rs:31
  function libmagic_rs::evaluator::types::read_typed_value, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/mod.rs:144
  function libmagic_rs::evaluator::types::read_quad, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/numeric.rs:170
  function libmagic_rs::evaluator::types::read_pstring, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/string.rs:426
  function libmagic_rs::evaluator::types::read_regex, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/regex.rs:259
  function libmagic_rs::evaluator::types::read_search, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/search.rs:150
  function libmagic_rs::evaluator::types::read_double, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/float.rs:73
  function libmagic_rs::evaluator::types::read_string, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/string.rs:67
  function libmagic_rs::evaluator::types::read_date, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/date.rs:46
  function libmagic_rs::evaluator::types::read_short, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/numeric.rs:74
  function libmagic_rs::evaluator::types::read_string16, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/string.rs:307
  function libmagic_rs::evaluator::types::read_string_exact, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/string.rs:108
  function libmagic_rs::evaluator::types::read_qdate, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/date.rs:94
  function libmagic_rs::evaluator::types::read_typed_value_with_pattern, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/mod.rs:187
  function libmagic_rs::evaluator::types::read_long, previously in file /tmp/.tmp6WVPCn/libmagic-rs/src/evaluator/types/numeric.rs:122

--- failure inherent_method_const_removed: pub method is no longer const ---

Description:
A publicly-visible method or associated fn is no longer `const` and can no longer be used in a `const` context.
        ref: https://doc.rust-lang.org/reference/const_eval.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/inherent_method_const_removed.ron

Failed in:
  EvaluationContext::new in /tmp/.tmprwZt0u/libmagic-rs/src/evaluator/mod.rs:124
  EvaluationContext::new in /tmp/.tmprwZt0u/libmagic-rs/src/evaluator/mod.rs:124

--- failure struct_marked_non_exhaustive: struct marked #[non_exhaustive] ---

Description:
A public struct has been marked #[non_exhaustive], which will prevent it from being constructed using a struct literal outside of its crate. It previously had no private fields, so a struct literal could be used to construct it outside its crate.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#attr-adding-non-exhaustive
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/struct_marked_non_exhaustive.ron

Failed in:
  struct RuleMatch in /tmp/.tmprwZt0u/libmagic-rs/src/evaluator/mod.rs:442
  struct RuleMatch in /tmp/.tmprwZt0u/libmagic-rs/src/evaluator/mod.rs:442
  struct ValueTransform in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:1544
  struct EvaluationMetadata in /tmp/.tmprwZt0u/libmagic-rs/src/lib.rs:621
  struct StringFlags in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:818
  struct MatchResult in /tmp/.tmprwZt0u/libmagic-rs/src/output/mod.rs:57
  struct EvaluationResult in /tmp/.tmprwZt0u/libmagic-rs/src/lib.rs:691
  struct MagicRule in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:1562
  struct MagicRule in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:1562
  struct MagicRule in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:1562
  struct SearchFlags in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:976
  struct RegexFlags in /tmp/.tmprwZt0u/libmagic-rs/src/parser/ast.rs:734
  struct EvaluationMetadata in /tmp/.tmprwZt0u/libmagic-rs/src/output/mod.rs:173
  struct EvaluationResult in /tmp/.tmprwZt0u/libmagic-rs/src/output/mod.rs:144
Changelog

[0.9.0] - 2026-05-29

Refactor

  • Close max_string_length CWE-770 gap + strip RuleMatch.type_kind from JSON (#304)

Documentation

  • Correct stale &+N relative-offset parsing TODO claims (#287) (#306)


This PR was generated with release-plz.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. rust Rust language features and idioms labels May 29, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 29, 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 <= 10

dosubot Bot added a commit that referenced this pull request May 29, 2026
@dosubot
Copy link
Copy Markdown
Contributor

dosubot Bot commented May 29, 2026

Related Knowledge

3 documents with suggested updates are ready for review.

libMagic-rs

api-reference /libmagic-rs/blob/main/docs/src/api-reference.md — ⏳ Awaiting Merge
API_REFERENCE /libmagic-rs/blob/main/docs/API_REFERENCE.md — ⏳ Awaiting Merge
migration /libmagic-rs/blob/main/docs/src/migration.md — ⏳ Awaiting Merge

How did I do? Any feedback?

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels May 29, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot force-pushed the release-plz-2026-05-29T21-57-00Z branch from 6d6c8c2 to ece0961 Compare May 29, 2026 22:39
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Rust language features and idioms size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants