Skip to content

How do you run the server? #86

Open

Description

@PEZ

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.

Activity

  1. comnik commented on Oct 15, 2019

    @comnik
    Owner

    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!

  2. added a commit that references this issue on Oct 15, 2019
    f865bfc
  3. PEZ commented on Oct 15, 2019

    @PEZ
    Author

    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.

  4. PEZ commented on Oct 15, 2019

    @PEZ
    Author

    OK. So hadn't created the PR. Now I have proposed the add. 😏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions