Skip to content

Update for 0.15.x, update tracy to 0.12.4 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kcbanner
Copy link

@kcbanner kcbanner commented Jul 19, 2025

  • Update tracy to 0.12.4
  • Remove usingnamespace usage
  • Update build.zig

@hazeycode hazeycode requested a review from Copilot July 20, 2025 09:48
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the codebase to be compatible with Zig version 0.15.x by removing the deprecated usingnamespace feature and updating build configuration. The changes restructure the module to use explicit public exports instead of namespace mixing.

Key changes include:

  • Refactor code organization by splitting implementations into separate modules
  • Replace usingnamespace with explicit public constant assignments that conditionally select between implementations
  • Update build.zig to use newer Zig 0.15.x APIs and patterns

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/ztracy.zig Main module restructured to use explicit exports instead of usingnamespace, with conditional selection between stub and implementation
src/stub.zig New file containing stub implementations extracted from the original tracy_stub struct
src/impl.zig New file containing full Tracy implementations extracted from the original tracy_full struct
build.zig Updated to use newer Zig 0.15.x build system APIs including addLibrary and createModule
Comments suppressed due to low confidence (1)

src/ztracy.zig:78

  • The TracyAllocator type is not exported in the main module. This could break existing code that relies on accessing TracyAllocator through the main ztracy module.
pub const AppInfo = if (enabled) impl.AppInfo else stub.AppInfo;

@kcbanner kcbanner marked this pull request as ready for review July 22, 2025 05:03
kcbanner added 3 commits July 26, 2025 11:28
- Update build.zig
- Bump minimum zig version, for std.fmt usage
@kcbanner kcbanner changed the title Update for 0.15.x Update for 0.15.x, update tracy to 0.12.4 Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants