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

Allow use of usdt probes with stable rust #317

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

pfmooney
Copy link
Contributor

@pfmooney pfmooney commented Apr 7, 2022

The usdt crate can be built with stable toolchains as of Rust v1.59,
except on MacOS, where the still-unstable asm_sym feature is needed.
Dropshot should do proper compiler version detection so it too can be
built with the stable toolchain when usdt is enabled.

@pfmooney pfmooney requested review from davepacheco and bnaecker April 7, 2022 19:58
dropshot/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@ahl ahl left a comment

Choose a reason for hiding this comment

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

looks great. thanks!

@davepacheco
Copy link
Collaborator

Nice! Is there any impact for the changelog? What does this mean for dropshot consumers?

@bnaecker
Copy link
Contributor

bnaecker commented Apr 8, 2022

Dropshot consumers should now be able to get USDT probes building on a stable compiler, as long as that's version >= 1.59, and they're not on macOS. The macOS implementation of usdt still relies on a nightly feature.

@pfmooney
Copy link
Contributor Author

pfmooney commented Apr 8, 2022

Added an update to the changelog to mention this.

The `usdt` crate can be built with stable toolchains as of Rust v1.59,
except on MacOS, where the still-unstable `asm_sym` feature is needed.
Dropshot should do proper compiler version detection so it too can be
built with the stable toolchain when `usdt` is enabled.
@davepacheco davepacheco enabled auto-merge (squash) April 8, 2022 17:10
@davepacheco davepacheco merged commit b6768d6 into oxidecomputer:main Apr 8, 2022
@pfmooney pfmooney deleted the stable-usdt branch April 8, 2022 17:22
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.

4 participants