secret-santa-rs

Crates.iosecret-santa-rs
lib.rssecret-santa-rs
version1.2.3
sourcesrc
created_at2022-07-30 01:14:56.965161
updated_at2023-09-18 08:27:07.479482
descriptionGenerator for who buys for who in a secret santa.
homepagehttps://codeberg.org/FinnPerry/secret-santa-rs
repositoryhttps://codeberg.org/FinnPerry/secret-santa-rs
max_upload_size
id635275
size20,604
(FinnPerry)

documentation

README

secret-santa-rs

Installation

  • Install cargo.
  • Run cargo install secret-santa-rs.

Usage

  • Create the file names.txt containing names.
    • Example file contents:
      John Smith
      Liam Anderson
      Emma Jones
      Bob
      
  • Run secret-santa-rs in the directory containing the names file. The program will output a list of who buys for who. People with the same last name will not be paired with each other.
  • If the program cannot find a valid pair for someone, it will output None (e.g. "Bob buys for None"). In some cases, running the program again will resolve this issue due to different randomness.
Commit count: 0

cargo fmt