Skip to content

Commit

Permalink
idl: Add ability to convert legacy IDLs (coral-xyz#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored May 25, 2024
1 parent 334a44a commit c614f10
Show file tree
Hide file tree
Showing 5 changed files with 574 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- idl, ts: Add accounts resolution for associated token accounts ([#2927](https://github.com/coral-xyz/anchor/pull/2927)).
- cli: Add `--no-install` option to the `init` command ([#2945](https://github.com/coral-xyz/anchor/pull/2945)).
- lang: Implement `TryFromIntError` for `Error` to be able to propagate integer conversion errors ([#2950](https://github.com/coral-xyz/anchor/pull/2950)).
- idl: Add ability to convert legacy IDLs ([#2986](https://github.com/coral-xyz/anchor/pull/2986)).

### Fixes

Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions idl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ rustdoc-args = ["--cfg", "docsrs"]

[features]
build = ["anchor-syn", "regex"]
convert = ["heck", "sha2"]

[dependencies]
anyhow = "1"
Expand All @@ -23,3 +24,7 @@ serde_json = "1"
# `build` feature only
anchor-syn = { path = "../lang/syn", version = "0.30.0", optional = true }
regex = { version = "1", optional = true }

# `convert` feature only
heck = { version = "0.3", optional = true }
sha2 = { version = "0.10", optional = true }
Loading

0 comments on commit c614f10

Please sign in to comment.