Files
2026-03-25 18:01:07 -05:00

436 B

rs-links

A basic link shortener.

Building

Build like any other Rust project. However, you will need to have a database set up at compile time, otherwise compilation will fail when the query! macro cannot find a database.

You can set this up with the sqlx CLI:

cargo install sqlx-cli
export DATABASE_URL=sqlite:links.db
sqlx database create
sqlx migrate run
cargo run

The application binds to 0.0.0.0:24580.