How do you run the server?
Hello,
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.
Now I am out of ideas, and love me some clues.
Hi,
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.
Good luck!
Yes, that worked. Thanks!
I proposed an addition about this to the README. Maybe more non-rustians (or whatever you call yourselves :smile:) would benefit from that.
OK. So hadn't created the PR. Now I have proposed the add. 😏