Technology Sharing

Getting Started with Rust: Writing a Minecraft Launcher #5: Starting the Game

2024-07-08

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

First published onEnaium's personal blog


OK, now that we have completed all the preparations, we can start writing the code to start the game.

First we need to add a few dependencies.

model = { path = "../model" }
parse = { path = "../parse" }
download = { path = "../download" }
clap = { version = "4.5" }
zip = "2.1"

clapUsed to parse command line arguments,zipUsed to decompress files.

First create acliFunctions are used to build our command line.

fn cli() -