gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.31k stars 247 forks source link

Cursive_Table_View doesn't build with cursive #537

Open smallB007 opened 3 years ago

smallB007 commented 3 years ago

This setup in Cargo.toml doesn't work, I'm getting error saying that probably two versions of cursive_core are used:

[dependencies] cursive = {git="https://github.com/gyscos/cursive.git",branch="main"} cursive_table_view = "*"

Best Regards

gyscos commented 3 years ago

Yeah it's not easy to combine git dependencies with dependencies from crates.io, since cargo isn't sure that they are compatible.

I think if you give a version to cursive in addition to the git value, it might help, but there's a chance you'll need to use the cursive from crates.io as well.

You might be able to patch the dependencies (see the documentation):

[dependencies]
cursive = "0.16"
cursive_table_view = "0.13"

[patch.crates-io]
cursive = {git="https://github.com/gyscos/cursive.git",branch="main"}

Haven't tested it though.

smallB007 commented 3 years ago

Would the issue reported by me be sorted by this: https://github.com/gyscos/cursive/issues/536

gyscos commented 3 years ago

I suppose indeed, publishing a new version of cursive_table_view compatible with cursive 0.16 may have fixed the issue.