kaist-cp/cs431

[Question] err happend when run cargo run hello_server in terminal

Closed this issue · 1 comments

this is the log

error: target `hello_server` in package `cs431-homework` requires the features: `build-bin`
Consider enabling them by passing, e.g., `--features="build-bin"`

and this is the Cargo.toml file i've not changed

[package]
name = "cs431-homework"
version = "0.1.0"
authors = ["Jeehoon Kang <jeehoon.kang@kaist.ac.kr>"]
edition = "2021"

[[bin]]
name = "hello_server"
path = "src/bin/hello_server.rs"
required-features = ["build-bin"]

[features]
build-bin = ["ctrlc"]
check-loom = ["loom"]

[dependencies]
cfg-if = "1.0.0"
crossbeam-channel = "0.5.12"
crossbeam-epoch = "0.9.18"
rayon = "1.10.0"
ctrlc = { version = "3.4.4", optional = true }
cs431 = { git = "https://github.com/kaist-cp/cs431" }
# cs431 = { path = "../cs431" }
loom = { version = "0.7.2", optional = true }
rand = "0.8.5"
regex = "1.10.4"

Please do as the error suggests, and do cargo run --features="build-bin".

I'll update the docs to explicitly mention this.