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
I can't figure out how to build this in a way that I later can run it. This is my first Rust thing ever. I have installed rustup and it got me cargo. I have run cargo build and it compiles everything, even if there are some deprecation warnings.
Running cargo run gives me:
a bin target must be available for `cargo run`
I've also tried cargo build --all-targets and the tests got my machine really hot, but still the same cargo run results.
I checked the video presentation linked in the README and saw the command cargo run --bin server -- -- used, but it gives me:
error: no bin target named `server`
I also looked at the Travis file and did the clippy things (w/o having the faintest idea about what I am doing), but same results.
I have installed rustup and it got me cargo. I have run cargo build and it compiles everything, even if there are some deprecation warnings.
So far, so good!
a bin target must be available for cargo run
Cargo differentiates between libraries and binaries. Declarative-dataflow (the main directory) contains only the library. Check out the server/ directory for the server binary. If you run cargo run within that subdirectory, you should be able to run the binary.
Clippy is a tool that checks our code for common issues / style problems. It's not required for the build to work.
Activity
comnik commentedon Oct 15, 2019
Hi,
So far, so good!
Cargo differentiates between libraries and binaries. Declarative-dataflow (the main directory) contains only the library. Check out the server/ directory for the server binary. If you run
cargo runwithin that subdirectory, you should be able to run the binary.Clippy is a tool that checks our code for common issues / style problems. It's not required for the build to work.
Good luck!
Add README info about how to start the server
PEZ commentedon Oct 15, 2019
Yes, that worked. Thanks!
I proposed an addition about this to the README. Maybe more non-rustians (or whatever you call yourselves 😄) would benefit from that.
PEZ commentedon Oct 15, 2019
OK. So hadn't created the PR. Now I have proposed the add. 😏