Skip to content

Make serde an optional dependency in wasmtime-core - #12739

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
bjorn3:wasmtime_core_optional_serde
Mar 9, 2026
Merged

Make serde an optional dependency in wasmtime-core#12739
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
bjorn3:wasmtime_core_optional_serde

Conversation

@bjorn3

@bjorn3 bjorn3 commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

cg_clif does not need serde, yet it was previously pulled in by Cranelift through the dependency on wasmtime-core.

Fixes #12733

cg_clif does not need serde, yet it was previously pulled in by
Cranelift through the dependency on wasmtime-core.
@bjorn3
bjorn3 requested review from a team as code owners March 6, 2026 09:51
@bjorn3
bjorn3 requested review from fitzgen and removed request for a team March 6, 2026 09:51
@github-actions github-actions Bot added fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself labels Mar 6, 2026
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

Subscribe to Label Action

cc @fitzgen

Details This issue or pull request has been labeled: "fuzzing", "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@alexcrichton alexcrichton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Can you ensure there's a cargo check on CI for with/without the feature, too? (or maybe there is already?)

@bjorn3

bjorn3 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

It should already be checked in CI through cargo check --manifest-path=./cranelift/Cargo.toml --bin clif-util.

@alexcrichton
alexcrichton added this pull request to the merge queue Mar 9, 2026
Merged via the queue into bytecodealliance:main with commit 72dccdf Mar 9, 2026
45 checks passed
bjorn3 added a commit to bjorn3/wasmtime that referenced this pull request Mar 10, 2026
…12739)

cg_clif does not need serde, yet it was previously pulled in by
Cranelift through the dependency on wasmtime-core.
@bjorn3
bjorn3 deleted the wasmtime_core_optional_serde branch March 10, 2026 15:19
alexcrichton pushed a commit that referenced this pull request Mar 10, 2026
cg_clif does not need serde, yet it was previously pulled in by
Cranelift through the dependency on wasmtime-core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cranelift now unconditionally depends on serde

2 participants