Skip to content

Migrate to Rust Edition 2024#9

Closed
KevinT3Hu wants to merge 3 commits intomainfrom
edition2024
Closed

Migrate to Rust Edition 2024#9
KevinT3Hu wants to merge 3 commits intomainfrom
edition2024

Conversation

@KevinT3Hu
Copy link
Copy Markdown
Member

@KevinT3Hu KevinT3Hu commented Feb 11, 2026

TODO: regenerate bindings that target edition 2024

Summary by Sourcery

将工作区更新为 Rust 2024 版,并相应调整与 FFI 相关的代码和依赖。

增强内容:

  • 将 FFI 指针转换、C 字符串转换、上下文创建以及动态符号加载/调用封装到显式的 unsafe 代码块中,以满足更严格的安全性要求。
  • 更新工作区配置,在各个 crate 中使用 resolver 3 和 Rust 2024 版。
  • 提升核心依赖版本(libloadingonce_cellbitflags),并在 maa-framework-sys 中默认启用动态特性集(dynamic feature set)。
Original summary in English

Summary by Sourcery

Update the workspace to Rust edition 2024 and adjust FFI-related code and dependencies accordingly.

Enhancements:

  • Wrap FFI pointer casts, C string conversions, context creation, and dynamic symbol loading/invocation in explicit unsafe blocks to comply with stricter safety requirements.
  • Update workspace configuration to use resolver 3 and Rust edition 2024 across crates.
  • Bump core dependencies (libloading, once_cell, bitflags) and enable the dynamic feature set by default in maa-framework-sys.

@unlimitedcodeG

This comment was marked as off-topic.

@KevinT3Hu KevinT3Hu closed this Feb 25, 2026
@KevinT3Hu KevinT3Hu deleted the edition2024 branch February 25, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants