8 releases (breaking)

0.30.1 Jun 20, 2024
0.29.0 Oct 16, 2023
0.28.0 Jun 9, 2023
0.27.0 Mar 8, 2023
0.3.0 Mar 12, 2021

#1 in #sealevel

Download history 12483/week @ 2024-07-19 12951/week @ 2024-07-26 12180/week @ 2024-08-02 14908/week @ 2024-08-09 13548/week @ 2024-08-16 15060/week @ 2024-08-23 14209/week @ 2024-08-30 12837/week @ 2024-09-06 12675/week @ 2024-09-13 14496/week @ 2024-09-20 14382/week @ 2024-09-27 10818/week @ 2024-10-04 13016/week @ 2024-10-11 15411/week @ 2024-10-18 17807/week @ 2024-10-25 19656/week @ 2024-11-01

67,451 downloads per month
Used in 517 crates (465 directly)

Apache-2.0

195KB
3.5K SLoC

Anchor ⚓ is a framework for Solana's Sealevel runtime providing several convenient developer tools.

  • Rust eDSL for writing safe, secure, and high level Solana programs
  • IDL specification
  • TypeScript package for generating clients from IDL
  • CLI and workspace management for developing complete applications

If you're familiar with developing in Ethereum's Solidity, Truffle, web3.js or Parity's Ink!, then the experience will be familiar. Although the syntax and semantics are targeted at Solana, the high level workflow of writing RPC request handlers, emitting an IDL, and generating clients from IDL is the same.

For detailed tutorials and examples on how to use Anchor, see the guided tutorials or examples in the GitHub repository.

Presented here are the Rust primitives for building on Solana.

Dependencies

~18–27MB
~458K SLoC