Skip to content

eswat2/rust-sudoku-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-api

simple api server implemented in Rust...

dependencies:

actix-cors actix-web base64 serde_json sudoku

usage:

cargo run

output:

{
  "metrics": {
    "counts": {
      "blanks": 56,
      "clues": 25
    },
    "nanos": {
      "generate": 278502,
      "solve": 5358
    }
  },
  "puzzle": "51..6...28.2......6..3.8.9.4..9..8.........5.1564............192...9...8...54....",
  "ref": "NTE5NzY0MzgyODMyMTU5NjQ3Njc0MzI4MTk1NDI3OTM1ODYxOTgzMjE2NzU0MTU2NDg3OTIzMzY1ODcyNDE5MjQxNjkzNTc4Nzk4NTQxMjM2"
}
Property Description
metrics insight into the puzzle counts & times
puzzle a string representing the puzzle board (dots are blank cells)
ref the base64 encoded solution to the puzzle

developer notes:

to check for updates:

cargo outdated

to update packages:

cargo update

references:

status:

This code has been "deprecated" since Heroku is removing it's free tier in November 2022.

This repo is now primarily for local development.

The new API is now serverless and running on Vercel...

About

Prototype Sudoku api server written in Rust...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published