14 releases (8 breaking)

new 1.0.0-rc.2 Jan 10, 2026
1.0.0-rc.1 Dec 12, 2025
0.32.1 Oct 10, 2025
0.31.1 Apr 20, 2025
0.3.0 Mar 12, 2021

#1 in #solana-anchor

Download history 52286/week @ 2025-09-20 48765/week @ 2025-09-27 49552/week @ 2025-10-04 56248/week @ 2025-10-11 65049/week @ 2025-10-18 60579/week @ 2025-10-25 64119/week @ 2025-11-01 55037/week @ 2025-11-08 63502/week @ 2025-11-15 60098/week @ 2025-11-22 62263/week @ 2025-11-29 59630/week @ 2025-12-06 57260/week @ 2025-12-13 48116/week @ 2025-12-20 38888/week @ 2025-12-27 54247/week @ 2026-01-03

207,593 downloads per month
Used in 694 crates (630 directly)

Apache-2.0

260KB
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

~14MB
~190K SLoC