cargo-protologic

Crates.iocargo-protologic
lib.rscargo-protologic
version0.2.2
sourcesrc
created_at2024-02-06 05:40:34.235168
updated_at2024-02-08 08:26:09.527768
descriptionA small tool to assist in writing Protologic fleets.
homepage
repositoryhttps://github.com/Jerald/cargo-protologic
max_upload_size
id1128470
size32,838
Oscar (Jerald)

documentation

README

cargo-protologic

This is a small tool to assist in writing Protologic fleets.

To use the run subcommand, you should have the Protologic Release somewhere on your computer. To simplify usage, you can set the PROTOLOGIC_PATH environment variable to the location of the release.

Usage

$ cargo protologic
A helper for creating Protologic fleets in rust!

Usage: cargo protologic <COMMAND>

Commands:
  build  Builds Protologic fleets from the cargo workspace
  list   List all built fleets. If you see none, try building them!
  run    Run battle between two fleets. The replay file will be put in your current directory. Requires your workspace to have exactly two fleets!
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

Features

  • Automatically builds a crate the right way to be used by Protologic. No cdylib required!
    • Note, you still should configure the release profile as you desire for optimizations
  • build subcommand uses cargo workspace default-members to pick fleets (by default). This enables you to have other helper crates in the workspace without them being confused for fleets!

Optional

  • Can pass --player to cargo protologic run to start the replay in the player!
    • Only works on Windows currently, as there's only a Windows build of protologic currently
Commit count: 0

cargo fmt