Demo fixture for the fj CLI: issues, stacked PRs, releases, and Actions used in fj's docs and screenshots.
Find a file
Stephen Way adb482f073
All checks were successful
ci / test (push) Successful in 22s
Add the urlshort library and CI
2026-06-05 09:46:39 -07:00
.forgejo/workflows Add the urlshort library and CI 2026-06-05 09:46:39 -07:00
src Add the urlshort library and CI 2026-06-05 09:46:39 -07:00
Cargo.toml Add the urlshort library and CI 2026-06-05 09:46:39 -07:00
README.md Add the urlshort library and CI 2026-06-05 09:46:39 -07:00

urlshort

A tiny URL shortener: base62 short codes over an in-memory store.

This repository is a demo fixture for the fj CLI. Its issues, pull requests, releases, and Actions runs exist so fj's docs and screenshots have something realistic to show.

use urlshort::{encode, decode};

let code = encode(12345);        // "3d7"
assert_eq!(decode(&code), Some(12345));