Crates.io | solana-idl-converter |
lib.rs | solana-idl-converter |
version | 0.2.0 |
source | src |
created_at | 2024-06-19 17:35:01.65594 |
updated_at | 2024-07-17 14:22:33.867521 |
description | Converts Rust Solana Classic IDL types definitions de/serializable with serde from various IDL formats. |
homepage | https://github.com/thlorenz/solana-idl |
repository | https://github.com/thlorenz/solana-idl |
max_upload_size | |
id | 1277218 |
size | 46,410 |
Converts different IDL formats to a common classic IDL format.
Not all parts of the new formats can be properly converted to the classic one, thus use this with care.
Specifically IDL instruction discriminants had a single u8
(who has more than 256
instructions?) but the new anchor format uses a Vec<u8>
instead.
Please refer to the tests for examples on how to use this.
MIT