Giter Site home page Giter Site logo

Comments (9)

sunxiaoguang avatar sunxiaoguang commented on May 27, 2024

Hi Alexander,

Thank you for reporting this issue. Could you please try building rucene with rust nightly-2019-10-28 which is specified in rust-toolchain? FnBox was removed recently and somehow your cargo is not using rust version specified in rust-toolchain.

Please let me know if you still have issues with it after switching to nightly-2019-10-28. And here are the commit and issue related to removing of FnBox.
rust-lang/rust#62043
rust-lang/rust#28796

from rucene.

atombender avatar atombender commented on May 27, 2024

Sorry, wasn't aware of the rust-toolchain file. Installing that nightly doesn't resolve anything, unfortunately:

$ rustup run nightly-2019-10-28 cargo build
   Compiling rucene v0.1.0
error[E0432]: unresolved import `std::boxed::FnBox`
  --> /Users/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/rucene-0.1.0/src/core/util/thread_pool.rs:27:5
   |
27 | use std::boxed::FnBox;
   |     ^^^^^^^^^^^^^^^^^ no `FnBox` in `boxed`

error: aborting due to previous error

from rucene.

sunxiaoguang avatar sunxiaoguang commented on May 27, 2024

Can you try rustc --version to check what's the actual version it is using?

from rucene.

atombender avatar atombender commented on May 27, 2024

Sure:

$ rustc --version
rustc 1.40.0-nightly (95f437b3c 2019-10-27)
$ rustup which rustc
/Users/alex/.rustup/toolchains/nightly-2019-10-28-x86_64-apple-darwin/bin/rustc

Not sure why the discrepancy (2019-10-27 vs. 2019-10-28) here.

from rucene.

sunxiaoguang avatar sunxiaoguang commented on May 27, 2024

Hm, that's weird. BTW: 2019-10-27 is the actual build date which is correct.

It works here and we are both using Mac so there shouldn't be anything related to specific platform.
image

Sorry that I'm kind of very busy right now and will come back later with this issue soon. Thank you.

from rucene.

atombender avatar atombender commented on May 27, 2024

Thanks!

from rucene.

sunxiaoguang avatar sunxiaoguang commented on May 27, 2024

Hi Alexander,

I finally know what's happening now. I overlooked that you were using rucene in your project and the compiler is complaining about a very old version which is still using FnBox.

The root cause was that we haven't published any update to crates.io for quite some time. In order to fix this issue, I just published a new version with latest updates. Please run cargo update to update it, Sorry for the inconvenience, hopefully we can put some more resources to maintain a release cycle later on.

from rucene.

atombender avatar atombender commented on May 27, 2024

Sorry, should have been explicit; I am indeed trying to import Rucene into an app. Works now, thanks for the fix!

from rucene.

sunxiaoguang avatar sunxiaoguang commented on May 27, 2024

Sorry, should have been explicit; I am indeed trying to import Rucene into an app. Works now, thanks for the fix!

Thank you for trying rucene. If you have any questions about using it, please don't hesitate to let me know.

from rucene.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.