rinf
rinf copied to clipboard
unable to install
The following error occurs when the cargo install rinf command is executed
error[E0658]: use of unstable library feature 'ptr_from_ref'
--> C:\Users\lethargy123.cargo\registry\src\rsproxy.cn-0dccff568467c15b\backtrace-0.3.70\src\symbolize\dbghelp.rs:260:25
|
260 | filename = Some(ptr::from_ref(slice::from_raw_parts(base, len)));
| ^^^^^^^^^^^^^
|
= note: see issue #106116 https://github.com/rust-lang/rust/issues/106116 for more information
= help: add #![feature(ptr_from_ref)]
to the crate attributes to enable
Compiling os-thread-local v0.1.3
For more information about this error, try rustc --explain E0658
.
error: could not compile backtrace
(lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile rinf v6.7.0
, intermediate artifacts can be found at C:\Users\LETHAR~1\AppData\Local\Temp\cargo-installUTymNX
.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR
to that path.
Hi @lethargy123 , thanks for the report :)
Unfortunately, I couldn't reproduce your problem as cargo install rinf
successfully works on my machine. Could you share your Rust version?
嗨,感谢您的报告:)
不幸的是,我无法重现您的问题,因为我的机器上成功运行。你能分享一下你的 Rust 版本吗?
cargo install rinf
cargo 1.76.0-nightly (2c03e0e2d 2023-11-16)
PS C:\Users\temed\Documents\GitHub\rinf> rustup default nightly
info: using existing install for 'nightly-x86_64-pc-windows-msvc'
info: default toolchain set to 'nightly-x86_64-pc-windows-msvc'
nightly-x86_64-pc-windows-msvc unchanged - rustc 1.78.0-nightly (4a0cc881d 2024-03-11)
PS C:\Users\temed\Documents\GitHub\rinf> cargo install rinf --force
Updating crates.io index
Installing rinf v6.7.0
Updating crates.io index
Compiling cc v1.0.90
Compiling cfg-if v1.0.0
Compiling windows_x86_64_msvc v0.52.4
Compiling tinyvec_macros v0.1.1
Compiling untrusted v0.9.0
Compiling rustls-pki-types v1.3.1
Compiling spin v0.9.8
Compiling crc32fast v1.4.0
Compiling percent-encoding v2.3.1
Compiling rustls v0.22.2
Compiling unicode-bidi v0.3.15
Compiling adler v1.0.2
Compiling zeroize v1.7.0
Compiling once_cell v1.19.0
Compiling subtle v2.5.0
Compiling winapi v0.3.9
Compiling tinyvec v1.6.0
Compiling getrandom v0.2.12
Compiling form_urlencoded v1.2.1
Compiling miniz_oxide v0.7.2
Compiling rustix v0.38.32
Compiling log v0.4.21
Compiling base64 v0.21.7
Compiling byteorder v1.5.0
Compiling webpki-roots v0.26.1
Compiling bitflags v2.5.0
Compiling rustc-demangle v0.1.23
Compiling atomic v0.5.3
Compiling either v1.10.0
Compiling windows-targets v0.52.4
Compiling windows-sys v0.52.0
Compiling flate2 v1.0.28
Compiling allo-isolate v0.1.24
Compiling unicode-normalization v0.1.23
Compiling zip v0.6.6
Compiling ring v0.17.8
Compiling backtrace v0.3.70
Compiling idna v0.5.0
Compiling os-thread-local v0.1.3
Compiling url v2.5.0
Compiling errno v0.3.8
Compiling home v0.5.9
Compiling which v6.0.0
Compiling rustls-webpki v0.102.2
Compiling ureq v2.9.6
Compiling protoc-prebuilt v0.3.0
Compiling rinf v6.7.0
Finished `release` profile [optimized] target(s) in 21.00s
Replacing C:\Users\temed\.cargo\bin\rinf.exe
Replaced package `rinf v6.7.0` with `rinf v6.7.0` (executable `rinf.exe`)
Still cannot reproduce that even on nightly, weird...