f6fee4ac3a
* Use infallible, unchecked methods to write into the serialization buffer We serialize in two steps: first we compute the size of the buffer, then we write into it. Therefore there's no need to check if each individual write fits the buffer - we know it does we just computed the required size. * serialize_parameters: remove extra loop/borrows Remove one extra loop over accounts to gather account lengths. Also gather all accounts at once and avoid temporary borrows. * Move creating MemoryRegions for serialized parameters from create_vm to serialize_parameters This is in preparation of using multiple MemoryRegions once we land direct account mapping. * bpf_loader: introduce internal API to build serialization buffer/regions This is prep work for landing the direct_mapping feature, which maps account data in their own memory regions. * serialization: fix after API changes |
||
---|---|---|
.. | ||
benches | ||
bpf | ||
cargo-build-bpf | ||
cargo-build-sbf | ||
cargo-test-bpf | ||
cargo-test-sbf | ||
docker-solana | ||
gen-headers | ||
macro | ||
program | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
README.md | ||
build.rs | ||
package.json |
README.md
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 Discord