Skip to content

Dami99-b/rust-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Rust URL Shortener

A tiny in-memory URL shortener built with Rust.
Made to practice CLI tools, HashMaps, and sync primitives.

Features

  • Generate random short codes (6 chars)
  • Store mappings in a HashMap
  • Resolve short codes back to URLs
  • CLI built with clap

Usage

cargo run -- shorten "https://example.com"
# Short code: Ab12Xz

cargo run -- resolve Ab12Xz
# Original URL: https://example.com

About

A simple in-memory URL shortener written in Rust. Built as a practice project for CLI apps, random generators, and thread-safe HashMaps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages