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

使用cargo安装包错 #5

Open
0x9bb1 opened this issue Mar 28, 2022 · 1 comment
Open

使用cargo安装包错 #5

0x9bb1 opened this issue Mar 28, 2022 · 1 comment

Comments

@0x9bb1
Copy link

0x9bb1 commented Mar 28, 2022

环境:macos bigsur
rustc: rustc 1.55.0 (c8dfcfe04 2021-09-06)
cargo: cargo 1.55.0 (32da73ab1 2021-08-23)
执行命令: cargo install --force dcli
报错:

error[E0599]: no method named `insert_and_get` found for struct `DOMAINS` in the current scope
   --> /Users/zhangxin/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/i18n-embed-fl-0.2.0/src/lib.rs:360:17
    |
136 | / lazy_static::lazy_static! {
137 | |     /// Cached data specific to each localization domain, to improve
138 | |     /// performance of subsequent macro invokations.
139 | |     static ref DOMAINS: dashmap::DashMap<String, DomainSpecificData> =
140 | |         dashmap::DashMap::new();
141 | | }
    | |_- method `insert_and_get` not found for this
...
360 |           DOMAINS.insert_and_get(domain.clone(), data)
    |                   ^^^^^^^^^^^^^^ method not found in `DOMAINS`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `i18n-embed-fl` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dcli v0.0.7`, intermediate artifacts can be found at `/var/folders/g3/38kh1ntx0rn4xkglzn5_l20h0000gn/T/cargo-installJ3vBc1`
@PrivateRookie
Copy link
Owner

crates.io 上已更新 0.0.8, 请尝试从 crate.io 重新安装

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

2 participants