449 stable releases

2.2.2 Mar 27, 2025
2.1.21 Apr 18, 2025
2.1.16 Mar 15, 2025
2.1.7 Dec 23, 2024
0.10.4 Nov 9, 2018

#169 in Magic Beans

Download history 24970/week @ 2024-12-30 37720/week @ 2025-01-06 46006/week @ 2025-01-13 49671/week @ 2025-01-20 48478/week @ 2025-01-27 63303/week @ 2025-02-03 69903/week @ 2025-02-10 56417/week @ 2025-02-17 65349/week @ 2025-02-24 60741/week @ 2025-03-03 74734/week @ 2025-03-10 70672/week @ 2025-03-17 74630/week @ 2025-03-24 63761/week @ 2025-03-31 88295/week @ 2025-04-07 74653/week @ 2025-04-14

307,005 downloads per month
Used in 996 crates (637 directly)

Apache-2.0

435KB
7K SLoC

The Solana host and client SDK.

This is the base library for all off-chain programs that interact with Solana or otherwise operate on Solana data structures. On-chain programs instead use the solana-program crate, the modules of which are re-exported by this crate, like the relationship between the Rust core and std crates. As much of the functionality of this crate is provided by solana-program, see that crate's documentation for an overview.

Many of the modules in this crate are primarily of use to the Solana runtime itself. Additional crates provide capabilities built on solana-sdk, and many programs will need to link to those crates as well, particularly for clients communicating with Solana nodes over RPC.

Such crates include:


Solana

Solana SDK

Use the Solana SDK Crate to write client side applications in Rust. If writing on-chain programs, use the Solana Program Crate instead.

More information about Solana is available in the Solana documentation.

The Solana Program Library provides examples of how to use this crate.

Still have questions? Ask us on Stack Exchange

Dependencies

~12–25MB
~394K SLoC