You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Use quote_spanned! strategically in #[program] macro for better error messages
This commit addresses issues #4015 and #3915 by:
- Replacing quote! with quote_spanned! in the #[program] macro where it improves developer UX
- Applying spans to instruction definitions, trait implementations, handler wrappers, CPI methods, and dispatch functions
- Improving CLI error messages to show struct names and accurate line numbers
- Simplifying error handling and removing unnecessary span extractions
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -617,7 +617,7 @@ See the [Anchor 0.29 release notes](https://www.anchor-lang.com/release-notes/0.
617
617
- spl: Re-export the `spl_token` crate ([#1665](https://github.com/coral-xyz/anchor/pull/1665)).
618
618
- lang, cli, spl: Update solana toolchain to v1.9.13 ([#1653](https://github.com/coral-xyz/anchor/pull/1653) and [#1751](https://github.com/coral-xyz/anchor/pull/1751)).
619
619
- lang: `Program` type now deserializes `programdata_address` only on demand ([#1723](https://github.com/coral-xyz/anchor/pull/1723)).
620
-
- ts: Make `Provider` an interface and adjust its signatures and add `AnchorProvider`implementor class ([#1707](https://github.com/coral-xyz/anchor/pull/1707)).
620
+
- ts: Make `Provider` an interface and adjust its signatures and add `AnchorProvider`implementer class ([#1707](https://github.com/coral-xyz/anchor/pull/1707)).
621
621
- spl: Change "to" to "from" in `token::burn` ([#1080](https://github.com/coral-xyz/anchor/pull/1080)).
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ To jump straight to examples, go [here](https://github.com/coral-xyz/anchor/tree
41
41
|`anchor-spl`| CPI clients for SPL programs on Solana |[](https://crates.io/crates/anchor-spl)|[](https://docs.rs/anchor-spl)|
42
42
|`anchor-client`| Rust client for Anchor programs |[](https://crates.io/crates/anchor-client)|[](https://docs.rs/anchor-client)|
43
43
|`@coral-xyz/anchor`| TypeScript client for Anchor programs |[](https://www.npmjs.com/package/@coral-xyz/anchor)|[](https://coral-xyz.github.io/anchor/ts/index.html)|
44
-
|`@coral-xyz/anchor-cli`| CLI to support building and managing an Anchor workspace |[](https://www.npmjs.com/package/@coral-xyz/anchor-cli)|[](https://coral-xyz.github.io/anchor/cli/commands.html)|
44
+
|`@coral-xyz/anchor-cli`| CLI to support building and managing an Anchor workspace |[](https://www.npmjs.com/package/@coral-xyz/anchor-cli)|[](https://www.anchor-lang.com/docs/references/cli)|
0 commit comments