You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aha. I neglected to add that I installed warg-cli and warg-server by using cargo at the command line.
But shouldn't they be configured so that they can run standalone and not require a Cargo.toml ?
This certainly seems like a bug.
In any case, I might have solved this (as a workaround):
The command cargo build ran successfully, giving me an executable ./target/debug/warg
I inserted the directory ./target/debug/at the head of my PATH
Then this command (from README.md) succeeded: cargo run -p warg-server -- --content-dir content
Cargo.toml is similar to go.mod, it is for build time dependencies. cargo run and cargo build both will be building the project and looking for the Cargo.toml in the workspace directory. Similar to go run and go build.
cargo install warg-server will build and install the binary. Similar to go install. Then you can use those installed binaries in your PATH.
Apologies, as this is a n00b question. (My language of choice is Go, not Rust.)
Re. README.md / Getting Started / Running the server:
When I try the command
cargo run -p warg-server -- --content-dir content
I get the error message
error: could not find Cargo.toml in /Users/fbaube/[the execution directory] or any parent directory
What is the correct way to remove this message ?
The text was updated successfully, but these errors were encountered: