rust-cv / cv

Rust CV mono-repo. Contains pure-Rust dependencies which attempt to encapsulate the capability of OpenCV, OpenMVG, and vSLAM frameworks in a cohesive set of APIs.
792 stars 62 forks source link

Cargo add cv doesn't work due to old unsupported attributes. #80

Open dogunbound opened 4 months ago

dogunbound commented 4 months ago

New project, and doing cargo add cv ; cargo run will generate this error:

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/dogunbound/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitarray-0.2.6/src/lib.rs:2:1
  |
2 | #![feature(min_const_generics)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
  |
  = help: the feature `min_const_generics` has been stable since `1.51.0` and no longer requires an attribute to enable

I decided to try out master with this settings:


[dependencies.cv]
git = "https://github.com/rust-cv/cv"

And only got these warnings (atleast it is running):

[dogunbound@archlinux test-rust]$ cargo run
warning: skipping duplicate package `ensure_no_std` found at `/home/dogunbound/.cargo/git/checkouts/cv-f2802c299d0e3a2a/82a25ee/cv-geom/ensure_no_std`
warning: skipping duplicate package `ensure_no_std` found at `/home/dogunbound/.cargo/git/checkouts/cv-f2802c299d0e3a2a/82a25ee/lambda-twist/ensure_no_std`
warning: skipping duplicate package `ensure_no_std` found at `/home/dogunbound/.cargo/git/checkouts/cv-f2802c299d0e3a2a/82a25ee/akaze/ensure_no_std`
warning: skipping duplicate package `ensure_no_std` found at `/home/dogunbound/.cargo/git/checkouts/cv-f2802c299d0e3a2a/82a25ee/cv-pinhole/ensure_no_std`
warning: skipping duplicate package `ensure_no_std` found at `/home/dogunbound/.cargo/git/checkouts/cv-f2802c299d0e3a2a/82a25ee/cv-core/ensure_no_std`
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/test-rust`
F8RZD commented 3 months ago

the cv cargo crate version "0.6.0" uses bitarray crate version "0.2.3". bitarray is now at version "0.10.0"

https://github.com/rust-cv/cv/blob/eba16de61b137314edc122b35db77ac345c5e1a4/Cargo.toml#L43

I do guess they do not plan to update the crate maybe ? my assumptions come from the way they present the build section