https://github.com/acheroncrypto/watchso
Hot reload Solana programs
https://github.com/acheroncrypto/watchso
command-line-tool developer-tools hot-reloading solana watch-files
Last synced: 8 months ago
JSON representation
Hot reload Solana programs
- Host: GitHub
- URL: https://github.com/acheroncrypto/watchso
- Owner: acheroncrypto
- License: apache-2.0
- Created: 2023-03-12T15:08:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-12T15:12:48.000Z (over 2 years ago)
- Last Synced: 2024-04-25T09:22:42.401Z (over 1 year ago)
- Topics: command-line-tool, developer-tools, hot-reloading, solana, watch-files
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# watchso
[](https://crates.io/crates/watchso) [](https://docs.rs/watchso/) [](https://github.com/acheroncrypto/watchso/blob/master/LICENSE)
Hot reload [Solana](https://solana.com) programs.
## Installation
Install with [cargo](https://www.rust-lang.org/learn/get-started):
```sh
cargo install watchso --locked
```
## Usage
Run in the directory of your project:
```sh
watchso
```
This will:
1. Check whether the necessary tools are installed e.g [solana-cli-tools](https://docs.solana.com/cli/install-solana-cli-tools).
2. Start a Solana test validator if it's not already running.
3. Update program id(s) if there is a mismatch between the keypair files and the source code.
4. Build the program(s).
5. Deploy the program(s).
6. Hot reload on changes.
### Supported frameworks
- [Native Solana](https://github.com/solana-labs/solana)
- [Anchor](https://github.com/coral-xyz/anchor)
- [Seahorse](https://github.com/ameliatastic/seahorse-lang)
## License
[Apache-2.0](https://github.com/acheroncrypto/watchso/blob/master/LICENSE)