yetist 谢谢!目前网络没问题了,但是安装 cbindgen
报错:
error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
--> /mnt/loongson/.cargo/registry/src/gitee.com-01797c8c6ced7c9d/indexmap-1.8.0/src/map.rs:1182:30
|
1182 | let iter = self.iter.as_slice().iter().map(Bucket::refs);
| ^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/58957
error[E0658]: use of unstable library feature 'vec_drain_as_slice': recently added
--> /mnt/loongson/.cargo/registry/src/gitee.com-01797c8c6ced7c9d/indexmap-1.8.0/src/set.rs:842:30
|
842 | let iter = self.iter.as_slice().iter().map(Bucket::key_ref);
| ^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/58957
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
error: could not compile `indexmap`.
看报错是因为稳定版的rustc不能使用任何unstable的特性。我的系统是Loongnix 20,rustc版本为1.41,这个源是给新世界的高版本rust用的吗?