oxidecomputer/humility

Fail to install

Anivie opened this issue · 0 comments

I am trying to install humility by cargo install --git https://github.com/oxidecomputer/humility.git --locked humility, it report an error:

error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/wrapper.rs:475:33
    |
475 |                 let proc_macro::LineColumn { line, column } = s.start();
    |                                 ^^^^^^^^^^ not found in `proc_macro`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::LineColumn;
    |
help: if you import `LineColumn`, refer to it directly
    |
475 -                 let proc_macro::LineColumn { line, column } = s.start();
475 +                 let LineColumn { line, column } = s.start();
    |

error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/wrapper.rs:489:33
    |
489 |                 let proc_macro::LineColumn { line, column } = s.end();
    |                                 ^^^^^^^^^^ not found in `proc_macro`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::LineColumn;
    |
help: if you import `LineColumn`, refer to it directly
    |
489 -                 let proc_macro::LineColumn { line, column } = s.end();
489 +                 let LineColumn { line, column } = s.end();
    |

   Compiling stable_deref_trait v1.2.0
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

   Compiling once_cell v1.17.1
   Compiling miniz_oxide v0.6.2
Some errors have detailed explanations: E0422, E0635.
For more information about an error, try `rustc --explain E0422`.
error: could not compile `proc-macro2` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `humility v0.10.29 (https://github.com/oxidecomputer/humility.git#1a35a87d)`, intermediate artifacts can be found at `/tmp/cargo-installQ91z1O`.

This error exists in my both systems(Windows11 and Ubuntu22)