cs431 icon indicating copy to clipboard operation
cs431 copied to clipboard

[Question] Running cargo run tcp giving error

Open Avyukth opened this issue 10 months ago • 1 comments

I have completed the TCP part of Homework 1, It is passing all the test cases successfully. But while running cargo run tcp getting below error cargo run hello_server error: target hello_serverin packagecs431-homeworkrequires the features:build-binConsider enabling them by passing, e.g.,--features="build-bin"``

How to solve it

Avyukth avatar Apr 02 '24 17:04 Avyukth

What are you trying to achieve? Do you want to run the hello_server binary? Then you should run the recommended command in the error message, 'cargo run hello_server --features="build-bin"'. If you want to run the tests for tcp, run 'cargo test tcp'

Lee-Janggun avatar Apr 03 '24 01:04 Lee-Janggun