Skip to content

idl: Make serde_json optional#4296

Merged
acheroncrypto merged 3 commits intosolana-foundation:masterfrom
acheroncrypto:idl-make-serde_json-optional
Mar 10, 2026
Merged

idl: Make serde_json optional#4296
acheroncrypto merged 3 commits intosolana-foundation:masterfrom
acheroncrypto:idl-make-serde_json-optional

Conversation

@acheroncrypto
Copy link
Collaborator

Problem

The serde_json dependency is not necessary for the default features of the IDL crate.

Summary of changes

Make the serde_json dependency optional and enable it for the build and convert features.

Note: anyhow and serde also don't seem necessary, but the spec crate, which is exported as types from the main IDL crate, uses them, meaning it's functionally useless to make them optional in the main crate.

@vercel
Copy link

vercel bot commented Mar 8, 2026

@acheroncrypto is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added dependencies Pull requests that update a dependency file idl related to the IDL, either program or client side fix Bug fix PR labels Mar 8, 2026
@nutafrost nutafrost moved this to Security Review Required in Anchor 1.0 Mar 9, 2026
Co-authored-by: Jamie Hill-Daniel <134328753+jamie-osec@users.noreply.github.com>
@acheroncrypto acheroncrypto merged commit f0d7b49 into solana-foundation:master Mar 10, 2026
114 of 116 checks passed
@github-project-automation github-project-automation bot moved this from Security Review Required to Done in Anchor 1.0 Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file fix Bug fix PR idl related to the IDL, either program or client side

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants