jamsocket / aper

A Rust data structure library built on state machines.
https://aper.dev
MIT License
299 stars 12 forks source link

How to run the examples #26

Closed EteimZ closed 2 years ago

EteimZ commented 2 years ago

I'm currently trying to run the drop-four example but its not working.

I ran the following command

cargo build

It built successfully then I ran

cargo run -p drop-four-client

This return an error:

error: a bin target must be available for `cargo run`

I'm currently stuck and I would really love to try out the examples.

paulgb commented 2 years ago

Hi Youdiowei, good question, this isn't currently well documented. I've added a note about how to run them using Jamsocket. I wish there was a way to build multiple targets with cargo directly, but currently there is not.

paulgb commented 2 years ago

Here is the note I added: https://github.com/drifting-in-space/aper/blob/main/examples/README.md