Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cavemanloverboy/oxylana
https://github.com/cavemanloverboy/oxylana
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cavemanloverboy/oxylana
- Owner: cavemanloverboy
- License: apache-2.0
- Created: 2023-02-16T07:18:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T02:11:34.000Z (about 2 years ago)
- Last Synced: 2024-10-13T15:02:09.079Z (4 months ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 67
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - cavemanloverboy/oxylana - (Rust)
README
# oxylana
### Full Stack Solana Development in Rust
This repository provides a template for a Solana application with a full Rust stack. The repository includes:white_check_mark: Rust Smart Contract (Anchor)
:white_check_mark: Rust Frontend (Dioxus)
:white_check_mark: Rust Unit Tests
A dummy keypair is provided. Presently, the frontend only supports Phantom, but similar adapters can be built for other wallets. This repository takes inspiration from [this repository](https://github.com/russellwmy/yew-dapp-examples).
There are many benefits to having Rust across the stack. The main benefit is having faster feedback/errors due to Rust's type system between frontend and backend code.
### Getting started
To run the unit tests, use `anchor test`.
To display the frontend, first spin up an `anchor localnet` and then run `trunk serve`.
If you do not have `trunk`, install via `cargo install trunk`.
This requires the wasm32 target, obtainable via `rustup target install wasm32-unknown-unknown` if you do not yet have it.
The use of localnet is hardcoded into the template; be sure to switch your wallet to localnet to avoid issues regarding recent blockhashes.
### Learn More
Visit the Dioxus, Trunk, and Anchor docs/repositories to learn more.