[Media] I made a Rust CLI game that tests how fast you can guess the language of a code block!

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern API for authentication & user identity.
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • LearnThisRepo.com - Learn 300+ open source libraries for free using AI.
  • guess-that-lang

    CLI game to see how fast you can guess the language of a code block!

    Hi! Thanks for trying out my game, sorry you ran into a problem :(. Could you create a github issue and include what you're running the CLI on?

  • starship

    ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

    I use starship. It's incredibly good looking haha

  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • confy

    🛋 Zero-boilerplate configuration management in Rust

    I use confy for persisted data (just the token and high score for now) because I don't know the best practices for where to put those kinds of files, which stores it as TOML.

  • syntect

    Rust library for syntax highlighting using Sublime Text syntax definitions.

    I love that idea! I think there might be a better way than just hardcoding all the comment types for all the languages, though. I'm using the syntect library which will parse the code based on syntax files, so I opened an issue there to see if they have anything that could help.

  • crossterm

    Cross platform terminal library rust

    I used crossterm. Really love the simplicity of the API, definitely fit my purposes well.

  • hub

    A command-line tool that makes git easier to use with GitHub.

    parse_git_branch() { # Speed up opening up a new terminal tab by not # checking `$HOME` ...which can't be a repo anyway # # For the heck of it, micro-optimize this too: # time (repeat 1000000 { [ "$PWD" = "$HOME" ] } ) == ~4.2s # time (repeat 1000000 { [[ "$PWD" == "$HOME" ]] } ) == ~1.4s [[ "$PWD" == "$HOME" ]] && return # Fastest known way to check the current branch name # (Uses `command` to bypass wrappers like https://hub.github.com/) ref="$(command git symbolic-ref --short HEAD 2> /dev/null)" || return echo " [$ref]" }

  • rust-build.action

    Automate publishing Rust build artifacts for GitHub releases through GitHub Actions

    Thank you so much for playing!! Really makes me happy to hear that <3. I'm aware of the binaries problem- I'm using a github action to create them on release, but it's using rust v1.60 even when I set it to use v1.63, so they haven't been building successfully. I submitted an issue here, feel free to take a look if you get the chance, I could use a second pair of eyes haha.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • language-guesser

    Nice game, I built something similar my self: https://github.com/ModProg/language-guesser, but I actually think your UI is nicer, like I just droped the code in unhighlighted and everything, and you even have the preview with dots.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts