simple api server implemented in Rust...
cargo run
{
"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 |
to check for updates:
cargo outdated
to update packages:
cargo update
- cargo-outdated - new cargo subcommand
- cargo-update - update dependencies
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...
- puzzle -- serverless