Skip to content

Allow use of usdt probes with stable rust#317

Merged
davepacheco merged 1 commit intooxidecomputer:mainfrom
pfmooney:stable-usdt
Apr 8, 2022
Merged

Allow use of usdt probes with stable rust#317
davepacheco merged 1 commit intooxidecomputer:mainfrom
pfmooney:stable-usdt

Conversation

@pfmooney
Copy link
Copy Markdown
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 bnaecker and davepacheco April 7, 2022 19:58
Comment thread dropshot/src/lib.rs Outdated
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@bnaecker
Copy link
Copy Markdown
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
Copy Markdown
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