solana_idl

Crates.iosolana_idl
lib.rssolana_idl
version0.1.0
sourcesrc
created_at2023-01-22 08:56:25.051958
updated_at2024-06-19 17:38:50.210697
descriptionRust Solana Classic IDL types definitions de/serializable with serde and converter.
homepagehttps://github.com/thlorenz/solana-idl
repositoryhttps://github.com/thlorenz/solana-idl
max_upload_size
id764885
size4,410
Thorsten Lorenz (thlorenz)

documentation

README

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 solana_idl::try_extract_classic_idl;
let idl_json = // read JSON from somewhere
let classic_idl = try_extract_classic_idl(idl_json).unwrap();

// If you want to save the classic IDL to a file to upload, etc. do the below
let classic_idl_json = serde_json::to_string(&classic_idl).unwrap();

LICENSE

MIT

Commit count: 12

cargo fmt