As the error says, the examples
package does not have a pancurses-backend
feature, which if you look in examples/Cargo.toml
is correct. The pancurses-backend
feature is actually located in the Cargo.toml
for cursive
.
So to enable it, you have to do --features cursive/pancurses-backend
instead.
While the directory is somewhat misleadingly called examples
. You can't use --example
in this case, as they're not examples in the Cargo sense. Instead you need to use --bin
.
cargo run -v --no-default-features --features cursive/pancurses-backend --bin select
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…