KonaeAkira / raphael-rs

Crafting rotation optimizer / macro generator for Final Fantasy XIV
https://www.raphael-xiv.com/
Apache License 2.0
67 stars 14 forks source link

Add a basic command-line interface #76

Closed jfarmer closed 3 weeks ago

jfarmer commented 3 weeks ago

This is a "v1", minimal-as-can-be command-line interface for Raphael-XIV. Improvements to the output, extra features, etc. can be added later.

The binary is called raphael-cli and can be built/run with:

cargo run -p raphael-cli -- --help

I'm not very experienced with Rust, so hopefully my changes to Cargo.toml make sense. I tried to follow the Package Layout guidelines from The Cargo Book.

KonaeAkira commented 3 weeks ago

I don't like how cargo still compiles egui when building the CLI. I think the CLI should be its own crate in the workspace instead of being part of the root crate.

jfarmer commented 3 weeks ago

I don't like how cargo still compiles egui when building the CLI. I think the CLI should be its own crate in the workspace instead of being part of the root crate.

@KonaeAkira I moved raphael-cli into its own crate in the workspace. I tried to follow the conventions as best I could, but I'm not very familiar w/ the Rust ecosystem.