Comments (9)
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.
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.
Can you try rustc --version to check what's the actual version it is using?
from rucene.
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.
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.
Sorry that I'm kind of very busy right now and will come back later with this issue soon. Thank you.
from rucene.
Thanks!
from rucene.
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.
Sorry, should have been explicit; I am indeed trying to import Rucene into an app. Works now, thanks for the fix!
from rucene.
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)
- `Read` on uninitialized buffer may cause UB
- Is this project the whole engine of zhihu search or just a central library of it? HOT 2
- Use after free / aliasing &mut's when using LongsPtr
- build error HOT 2
- Indexing too many document fails in one commit fails. HOT 5
- PhraseQuery do not work HOT 2
- Index too large HOT 5
- master分支对应lucene哪个版本? HOT 3
- How is it compare to tantivy HOT 3
- Does Rucene support Chinese character indexing and searching HOT 1
- Which index codecs are supported? HOT 9
- unable to build from source on toolchain recommendation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rucene.