clashtui icon indicating copy to clipboard operation
clashtui copied to clipboard

Cannot build from source even with `--locked`

Open clin1234 opened this issue 8 months ago • 0 comments

warning: variable does not need to be mutable
   --> api/src/clash.rs:231:13
    |
231 |         let mut request = self.make_req(url_item, timeout);
    |             ----^^^^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

warning: trait `ResProcess` is never used
   --> api/src/clash.rs:108:7
    |
108 | trait ResProcess {
    |       ^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: `api` (lib) generated 10 warnings (run `cargo fix --lib -p api` to apply 1 suggestion)
   Compiling ui v0.2.1 (/home/cc/.cargo/git/checkouts/clashtui-01166389b955d38f/84d20a9/clashtui/ui)
warning: ignoring -C extra-filename flag due to -o flag

error[E0432]: unresolved import `crossterm::event`
   --> ui/src/lib.rs:3:9
    |
3   | pub use crossterm::event;
    |         ^^^^^^^^^^^^^^^^ no `event` in the root
    |
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:243:9
    |
243 | pub mod event;
    |         ^^^^^
note: the item is gated behind the `events` feature
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:242:7
    |
242 | #[cfg(feature = "events")]
    |       ^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `crossterm::event`
   --> ui/src/widgets/confirm_popup.rs:1:16
    |
1   | use crossterm::event::{Event, KeyCode, KeyEventKind};
    |                ^^^^^ help: a similar path exists: `ratatui::crossterm::event`
    |
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:243:9
    |
243 | pub mod event;
    |         ^^^^^
note: the item is gated behind the `events` feature
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:242:7
    |
242 | #[cfg(feature = "events")]
    |       ^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `crossterm::event`
   --> ui/src/widgets/input.rs:1:16
    |
1   | use crossterm::event::{Event, KeyCode, KeyEventKind};
    |                ^^^^^ help: a similar path exists: `ratatui::crossterm::event`
    |
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:243:9
    |
243 | pub mod event;
    |         ^^^^^
note: the item is gated behind the `events` feature
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:242:7
    |
242 | #[cfg(feature = "events")]
    |       ^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `crossterm::event`
   --> ui/src/widgets/list.rs:1:16
    |
1   | use crossterm::event::{Event, KeyCode, KeyEventKind};
    |                ^^^^^ help: a similar path exists: `ratatui::crossterm::event`
    |
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:243:9
    |
243 | pub mod event;
    |         ^^^^^
note: the item is gated behind the `events` feature
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:242:7
    |
242 | #[cfg(feature = "events")]
    |       ^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `crossterm::event`
   --> ui/src/widgets/msg.rs:1:16
    |
1   | use crossterm::event::{Event, KeyCode, KeyEventKind};
    |                ^^^^^ help: a similar path exists: `ratatui::crossterm::event`
    |
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:243:9
    |
243 | pub mod event;
    |         ^^^^^
note: the item is gated behind the `events` feature
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:242:7
    |
242 | #[cfg(feature = "events")]
    |       ^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `crossterm::event`
   --> ui/src/lib.rs:21:9
    |
21  |         event::{DisableMouseCapture, EnableMouseCapture},
    |         ^^^^^ help: a similar path exists: `ratatui::crossterm::event`
    |
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:243:9
    |
243 | pub mod event;
    |         ^^^^^
note: the item is gated behind the `events` feature
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs:242:7
    |
242 | #[cfg(feature = "events")]
    |       ^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0432`.
warning: `ui` (lib) generated 1 warning
error: could not compile `ui` (lib) due to 6 previous errors; 1 warning emitted
error: failed to compile `clashtui v0.2.3 (https://github.com/JohanChane/clashtui#84d20a96)`, intermediate artifacts can be found at `/tmp/cargo-installuU79y0`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

clin1234 avatar May 10 '25 21:05 clin1234