znap
Znap framework's core library to create Solana actions
`znap` is the core library that encompasses `znap-macros`, znap-syn and other essential components for Solana actions programming.
`znap` is responsible for coordinating the different modules and tools needed to parse, transform and generate code in Rust. By integrating `znap-macros` and `znap-syn`, `znap` allows developers to take full advantage of Rust's capabilities to create Solana actions.
## How to import znap
1. `cargo add znap`
2. In your lib.rs file import: `use znap::prelude::*`
## Package
| Package | Description | Version | Docs |
| :---------------------- | :------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------- |
| `znap` | Znap framework's core library to create Solana actions | [![Crates.io](https://img.shields.io/crates/v/znap?color=blue)](https://crates.io/crates/znap) | [![Docs.rs](https://docs.rs/anchor-lang/badge.svg)](https://docs.rs/znap/latest/znap/) |
## How to use
```rust
use solana_sdk::{message::Message, pubkey, pubkey::Pubkey, transaction::Transaction};
use spl_associated_token_account::get_associated_token_address;
use spl_token::{instruction::transfer, ID as TOKEN_PROGRAM_ID};
use std::str::FromStr;
use znap::prelude::*;
#[collection]
pub mod my_actions {
use super::*;
pub fn fixed_transfer(ctx: Context