solana-idl
Extracts Rust Solana IDL types definitions de/serializable with serde extracted from shank or anchor.
Handles multiple IDL versions to provide the classic IDL structure.
Example
use try_extract_classic_idl;
let idl_json = // read JSON from somewhere
let classic_idl = try_extract_classic_idl.unwrap;
// If you want to save the classic IDL to a file to upload, etc. do the below
let classic_idl_json = to_string.unwrap;
LICENSE
MIT