Registry / other / anchor-syn

anchor-syn

JSON →
library1.0.2rscratesunverified

Anchor syntax parsing and code generation tools for Solana programs.

# Cargo.toml [dependencies] anchor-syn = "1.0.2"
INSTALL
IMPORT
SIG · ANCHOR-SYN
A
anchor-syn
otherrustv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Idl
✓ use anchor_syn::Idl;

Parses an Anchor IDL from JSON.

use anchor_syn::Idl; let idl: Idl = serde_json::from_str(r#"{"version":"0.1.0"}"#).unwrap(); println!("IDL version: {}", idl.version);
Debug
Known issues
gotchaRequires the `anchor-lang` crate and Solana toolchain for full functionality.
fix
Add `anchor-lang` as a dependency and install Solana CLI tools.
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
anchor-syn — cargo add anchor-syn · libregistry