Stream: git-wasmtime

Topic: wasmtime / PR #10144 Add a style guideline for conditiona...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:00):

alexcrichton opened PR #10144 from alexcrichton:doc-conditional-compilation to bytecodealliance:main:

I've been doing a fair amount of work recently that's touched on #[cfg] in many ways throughout Wasmtime. I've personally got opinions about how to structure everything as well, and these opinions are not always obvious to others or discerned from just reading snippets. To assist with this I figured it would be nice to have a style guideline for Wasmtime's conditionally compiled code explaining at least at a high level what's going on and some rough basic principles.

I've attempted to give this a stab and have added a page to the contributing documentation about the style guidelines for conditional compilation. I'm sure I've forgotten something here but my hope is that we can evolve this over time.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:00):

alexcrichton requested cfallin for a review on PR #10144.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:00):

alexcrichton requested wasmtime-default-reviewers for a review on PR #10144.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:20):

cfallin submitted PR review:

Thanks for writing this up!

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:20):

cfallin created PR review comment:

s/repetetive/repetitive/

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:32):

alexcrichton updated PR #10144.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 28 2025 at 23:32):

alexcrichton has enabled auto merge for PR #10144.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 29 2025 at 15:39):

alexcrichton updated PR #10144.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 29 2025 at 15:39):

alexcrichton has enabled auto merge for PR #10144.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 29 2025 at 16:16):

alexcrichton merged PR #10144.


Last updated: Feb 28 2025 at 01:30 UTC