Skip to content
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

Add flush-on-exit feature #81

Merged
merged 1 commit into from
Jan 28, 2024
Merged

Add flush-on-exit feature #81

merged 1 commit into from
Jan 28, 2024

Conversation

SUPERCILEX
Copy link
Contributor

No description provided.

@nagisa
Copy link
Owner

nagisa commented Dec 23, 2023

Not sure how much sense it makes to merge this right now, given that it probably doesn’t work anyway (and also, I have concerns about how well this works in context of feature unification…)

That said, even if we do not land the crate feature, we can at least inform cargo that it should rebuild the crate if the TRACY_NO_EXIT environment variable is set.

@SUPERCILEX
Copy link
Contributor Author

Not sure how much sense it makes to merge this right now, given that it probably doesn’t work anyway

Yeah, lemme fix shutdown first and then I think this should go in just on the principle that we should be mirroring all tracy flags.

@SUPERCILEX
Copy link
Contributor Author

@nagisa This should be ready to go now!

Copy link
Owner

@nagisa nagisa left a comment

Choose a reason for hiding this comment

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

I believe making exit a default feature will make all ci configurations pass too

@@ -43,6 +43,7 @@ ondemand = []
manual-lifetime = ["delayed-init"]
delayed-init = []
callstack-inlines = []
exit = []
Copy link
Owner

@nagisa nagisa Jan 27, 2024

Choose a reason for hiding this comment

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

It should be a default feature in all crates IMO. Using this won't be an epitome of convenience, but we can't make random configurations of this crate just hang without intentional action by the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough, though that's definitely going to be annoying because now users need to disable default features. I wonder if no-exit does actually make more sense?

Copy link
Owner

@nagisa nagisa Jan 28, 2024

Choose a reason for hiding this comment

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

I guess it could if one interprets it more like hold-on-exit, thus making it properly additive, rather than conceptually removing code that exits programs (which what the no-exit name suggests) :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That works! I went with flush-on-exit because hold makes it sound like we'll wait forever.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mmmm, that makes CI ugly unfortunately.

@SUPERCILEX SUPERCILEX changed the title Add no exit feature Add flush-on-exit feature Jan 28, 2024
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
@nagisa nagisa merged commit 77c5196 into nagisa:main Jan 28, 2024
45 checks passed
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