Pastebin like app in rust
Securely share texts on the internet with password protection and expiry date.
- Install Rust
- Clone the Repository
- Setup Database
- Install SQLX with
cargo install sqlx-cli
sqlx database setup
- Install SQLX with
- For Web Interface
cargo run --bin httpd
- For Command Line Interface
cargo run --bin clipclient
- Rust
- SQLX
- Rocket
- Tokio
- Instead of logging each view (hit) directly into the database, we defer these operations into separate threads. This allows us to batch multiple hits into a single database commit, significantly improving performance and reducing contention on the database.