Skip to content

Can`t build from source! #84

@tanqiangyes

Description

@tanqiangyes

step 1:
git clone https://github.com/ekzhang/sshx.git
step 2:
git checkout tags/v0.2.3 -b v0.2.3
dtep 3:
cargo install --path crates/sshx

will output error:

error[E0658]: use of unstable library feature 'proc_macro_byte_character'
  --> C:\Users\admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.81\src\wrapper.rs:871:21
   |
871 |                     proc_macro::Literal::byte_character(byte)
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #115268 <https://github.com/rust-lang/rust/issues/115268> for more information
   = help: add `#![feature(proc_macro_byte_character)]` to the crate attributes to enable
   = note: this compiler was built on 2024-04-01; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'proc_macro_c_str_literals'
  --> C:\Users\admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.81\src\wrapper.rs:898:21
   |
898 |                     proc_macro::Literal::c_string(string)
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #119750 <https://github.com/rust-lang/rust/issues/119750> for more information
   = help: add `#![feature(proc_macro_c_str_literals)]` to the crate attributes to enable
   = note: this compiler was built on 2024-04-01; consider upgrading it if it is out of date

  Compiling try-lock v0.2.5
For more information about this error, try `rustc --explain E0658`.
error: could not compile `proc-macro2` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sshx v0.2.3 (E:\work\sshx\crates\sshx)`, intermediate artifacts can be found at `E:\work\sshx\target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

if need, I can try to deal it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions