Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

版本没兼容导入的模块得使用extern修饰 #5

Closed
AliceLanniste opened this issue Jun 8, 2019 · 6 comments
Closed

版本没兼容导入的模块得使用extern修饰 #5

AliceLanniste opened this issue Jun 8, 2019 · 6 comments

Comments

@AliceLanniste
Copy link
Contributor

我使用win10的操作系统,rust-version是1.3.1,cargo test时候,报出如下错误

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
  --> src\lib.rs:50:9
   |
34 | mod compaction;
   | --------------- not an extern crate passed with `--extern`
...
50 | pub use compaction::ManualCompaction;
   |         ^^^^^^^^^^
   |
note: this import refers to the module defined here
  --> src\lib.rs:34:1
   |
34 | mod compaction;
   | ^^^^^^^^^^^^^^^

error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
  --> src\lib.rs:51:9
   |
35 | pub mod db;
   | ----------- not an extern crate passed with `--extern`
...
51 | pub use db::{WickDB, DB};
   |         ^^
   |
note: this import refers to the module defined here
  --> src\lib.rs:35:1
   |
35 | pub mod db;
   | ^^^^^^^^^^^
@Fullstop000
Copy link
Owner

Thanks for the feedback! I’ll check this soon.

@Fullstop000
Copy link
Owner

@AliceLanniste It seems this is related to the feature uniform path rust-lang/rust#56759. Could you please update rustc to 1.32 or newer and post the result of cargo test?

@AliceLanniste
Copy link
Contributor Author

我明白了,顺便问句题外话,我的英语不是很好,你用全英文写文档以及回复我是怎么做到的,真诚的请教一下

@bytesnail
Copy link

bytesnail commented Jun 8, 2019

@AliceLanniste https://translate.google.cn/

再就是多参与一下其它开源项目,跟社区接触多了,常见的沟通语句见多了就会了

@Fullstop000
Copy link
Owner

@AliceLanniste 多写就是了 just do it :)

@Fullstop000
Copy link
Owner

Close since we prefer using the latest stable rust :).
See Developing part in https://github.com/Fullstop000/wickdb/blob/master/README.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants