structopt
enum-map
DISCONTINUED
Our great sponsors
structopt | enum-map | |
---|---|---|
18 | 3 | |
2,670 | 21 | |
- | - | |
2.7 | 0.0 | |
3 months ago | - | |
Rust | Rust | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
structopt
-
What's the coolest Rust project you've seen that made you go, 'Wow, I didn't know Rust could do that!'?
Hope you are aware that structopt is in maintenance mode and is merged into clap as of v3.
-
Task manager for Linux using rust
As I understood you need to implement a command line argument parser for that you can use clap https://github.com/clap-rs/clap or structopt https://github.com/TeXitoi/structopt.
-
clap with Ed Page :: Rustacean Station
I feel like discovering moves like this is a weakness in the ecosystem today. You can check out some of our discussion on raising visibility
-
clap 3.1: A step towards 4.0
Something I've been giving thought to is how to help structopt users discover that clap3 is their upgrade path. We've put notices in the structopt repo but cargo upgrade and docs.rs won't say anything. See https://github.com/TeXitoi/structopt/issues/525 for more ideas we're considering.
-
ANN: clap 3.0.0-rc.0!
For myself, I have found serde.rs really useful for undertanding their derives while I've always been frustrated with finding anything in structopt's documentation, so I modeled it more off of serde. This ended up both being in structure and not being in docs.rs. I think it really was the structure that was the frustration point for me but there was interest elsewhere in moving stuff out of docs.rs.
Not too sure, actually. I've started a conversation about this.
To add, StructOpt had an example for this case.
-
fncmd: Command line interface as a function.
I think it would be nice to have a comparison to clap-derive and/or structopt in the README, as that is what I expect most users would compare this to. The subcommand handling looks especially cumbersome compared to deriving on structs and enums.
-
vaultssh: A small CLI wrapper for authenticating with SSH keys from Hashicorp Vault
Have you tried https://github.com/TeXitoi/structopt ?
-
SwayWS - a sway workspace tool which allows easy moving of workspaces to and from outputs
It is written in Rust using the structopt and swayipc crates. It is published on crates.io. The repository is hosted on GitLab. The repository is mirrored on GitHub.
enum-map
-
(Tip of my fingers) Library with a macro to create an enum from a range
I know I could write (and have written) this enum myself by hand. I don't want to use a newtype around u8 or something like that because I want the static guarantees of an enum — plus I'm using EnumMap to create statically-allocated maps with enum keys, so I'm hoping whatever this library was will play nicely with it.
-
Is std::collections::HashMap optimized for enums?
What you might want is enum-map instead.
-
What's your favourite under-rated Rust crate and why?
enum_map is great for dense maps where the keys are the variants of a discriminant-only enum.
What are some alternatives?
clap-rs - A full featured, fast Command Line Argument Parser for Rust
strum - A small rust library for adding custom derives to enums
docopt.rs - Docopt for Rust (command line argument parser).
easy_flag - Simple command line flag parser for rust.
anyhow - Flexible concrete Error type built on std::error::Error
parse-size - Parse byte size into integer accurately.
rust-starter - Rust Starter Project
cargo-edit - A utility for managing cargo dependencies from the command line.
cobra - A Commander for modern Go CLI interactions
argh - Rust derive-based argument parsing optimized for code size
NumToA - An efficient method of heaplessly converting numbers into their string representations, storing the representation within a reusable byte array.
actix-web-static-files - actix-web static files as resources support