Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify crate specs in config #539

Closed
Jake-Shadle opened this issue Jul 29, 2023 · 0 comments · Fixed by #605
Closed

Simplify crate specs in config #539

Jake-Shadle opened this issue Jul 29, 2023 · 0 comments · Fixed by #605
Labels
enhancement New feature or request

Comments

@Jake-Shadle
Copy link
Member

Currently, specifying a crate and a version range via a { name = "<krate_name>", version = "<version_req>", ... } is used in several locations in the config. This is "fine" but ends up being quite noisy in typical usage of wanting to configure a crate at all versions, the default if version is not specified, making the name = "" portion repetitive. Rather, it would be nicer to just collapse crate name + optional version requirements into a single string and just use a : or @ to separate the name from the version req if specified. This will tend to make larger configs with eg. lots of bans.deny much smaller and easier to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant