-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Docs] Use cargo-rx
to run examples within the project
#1849
Comments
Cool project but I don't think we can use it for the axum repo. The repo is used by a lot of people with different setups and we can't expect people to install non-standard tools, unless we have a good reason to do so. You can already do
I think that's good enough. |
No worries @davidpdrsn ! And just to clarify I did not mean it should be required, only that including a suggestion in Also,
I have additionally tested out However, I understand that not all projects can utilize it due to high volume of users and with users with different setups etc. In that case, please do let me know if any plans change in the future. |
Feature Request
Hi 👋
I feel this is a great project, even though I haven't looked too much into its internals and use case. I just wanted to let you know about a project cargo-rx I have come up with for abstracting away
cargo run --example
.As of the latest version, it supports running Cargo crates (with binary targets) within the
examples/
folder, thanks to a related issue that was opened, rnag/cargo-rx#19.I would suggest updating the relevant documentation in the
axum
project to mention thatrx
can be used in place ofcargo run --example
. Check it out and let me what you think about it. I can also help you update the docs if you're interested.The
rx
command-line tool correctly identifies all 46 (runnable) targets within the project'sexamples/
folder.Here is some example usage:
Here is a selection window from the console (note the example name to run can also be searched/filtered)
Motivation
No other motivation other than awareness, and plus I feel it would be truly beneficial for other developers and users, especially those that check out or clone the project locally.
Proposal
Update documentation in
examples/README.md
, and elsewhere as needed. I can also help to update the docs as needed.Alternatives
The (current) alternative that can be used is
cargo run
, passing--manifest-path
and/or--bin
as needed. However, that is hit-or-miss and requires knowing the specific example to run, or elsecd
-ing into each example directory one at a time.The text was updated successfully, but these errors were encountered: