-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
I'm new to Rust (but have done plenty of embedded C) so could easily have the wrong end of the stick, but seems to be the build is broken here.
I've tried building locally with various edits to Cargo.toml suggested by LLMs (eg, upgrading indicatif to 0.17 or 0.18) to no avail. Would be great if someone with more experience in Rust could jump in as it seems like a great tool!
Output below from my Windows machine, but result is similar on Mac.
(base) PS C:\Users\Tim\Documents> cargo install --git https://github.com/mufeedvh/pdfrip.git
Updating git repository `https://github.com/mufeedvh/pdfrip.git`
Installing pdfrip v2.0.1 (https://github.com/mufeedvh/pdfrip.git#461fe2f5)
Updating crates.io index
Locking 124 packages to latest compatible versions
Adding colored v2.2.0 (available: v3.0.0)
Adding indicatif v0.16.2 (available: v0.18.0)
Adding pdf v0.8.1 (available: v0.9.0)
Compiling proc-macro2 v1.0.95
Compiling unicode-ident v1.0.18
Compiling typenum v1.18.0
Compiling windows_x86_64_msvc v0.52.6
Compiling version_check v0.9.5
Compiling syn v1.0.109
Compiling crossbeam-utils v0.8.21
Compiling autocfg v1.5.0
Compiling serde v1.0.219
Compiling windows_x86_64_msvc v0.53.0
Compiling tinyvec_macros v0.1.1
Compiling log v0.4.27
Compiling memchr v2.7.5
Compiling doc-comment v0.3.3
Compiling tinyvec v1.9.0
Compiling generic-array v0.14.7
Compiling num-traits v0.2.19
Compiling aho-corasick v1.1.3
Compiling windows-targets v0.52.6
Compiling regex-syntax v0.8.5
Compiling adler32 v1.2.0
Compiling windows-sys v0.59.0
Compiling cfg-if v1.0.1
Compiling heck v0.4.1
Compiling cpufeatures v0.2.17
Compiling unicode-normalization v0.1.24
Compiling utf8parse v0.2.2
Compiling quote v1.0.40
Compiling once_cell_polyfill v1.70.1
Compiling unicode-properties v0.1.3
Compiling syn v2.0.104
Compiling anyhow v1.0.98
Compiling web-time v1.1.0
Compiling anstyle v1.0.11
Compiling unicode-bidi v0.3.18
Compiling either v1.15.0
Compiling regex-automata v0.4.9
Compiling crypto-common v0.1.6
Compiling block-padding v0.3.3
Compiling block-buffer v0.10.4
Compiling itertools v0.10.5
Compiling inout v0.1.4
Compiling anstyle-wincon v3.0.9
Compiling cipher v0.4.4
Compiling digest v0.10.7
Compiling stringprep v0.1.5
Compiling sha2 v0.10.9
Compiling cbc v0.1.2
Compiling aes v0.8.4
Compiling anstyle-query v1.1.3
Compiling anstyle-parse v0.2.7
Compiling crossbeam-epoch v0.9.18
Compiling windows-targets v0.53.2
Compiling deflate v1.0.0
Compiling inflate v0.4.5
Compiling jpeg-decoder v0.3.2
Compiling is_terminal_polyfill v1.70.1
Compiling colorchoice v1.0.4
Compiling tuple v0.5.2
Compiling bitflags v1.3.2
Compiling once_cell v1.21.3
Compiling md5 v0.7.0
Compiling weezl v0.1.10
Compiling anstream v0.6.19
Compiling windows-sys v0.60.2
Compiling crossbeam-deque v0.8.6
Compiling regex v1.11.1
Compiling winapi-util v0.1.9
Compiling crossbeam-queue v0.3.12
Compiling crossbeam-channel v0.5.15
Compiling encode_unicode v1.0.0
Compiling strsim v0.11.1
Compiling heck v0.5.0
Compiling lazy_static v1.5.0
Compiling clap_lex v0.7.5
Compiling bytecount v0.6.9
Compiling clap_builder v4.5.41
Compiling console v0.16.0
Compiling producer v2.0.1 (C:\Users\Tim\.cargo\git\checkouts\pdfrip-d53e16b1d1f97ed4\461fe2f\crates\producer)
Compiling crossbeam v0.8.4
Compiling termcolor v1.4.1
Compiling is-terminal v0.4.16
Compiling humantime v2.2.0
Compiling number_prefix v0.4.0
Compiling colored v2.2.0
Compiling indicatif v0.16.2
error[E0432]: unresolved import `console::Term`
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\indicatif-0.16.2\src\state.rs:10:5
|
10 | use console::Term;
| ^^^^^^^^^^^^^ no `Term` in the root
|
note: found an item that was configured out
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:92:42
|
92 | user_attended, user_attended_stderr, Term, TermFamily, TermFeatures, TermTarget,
| ^^^^
note: the item is gated behind the `std` feature
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:90:7
|
90 | #[cfg(feature = "std")]
| ^^^^^^^^^^^^^^^
help: consider importing this variant instead
|
10 - use console::Term;
10 + use crate::state::ProgressDrawTargetKind::Term;
|
error[E0432]: unresolved imports `console::measure_text_width`, `console::Style`
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\indicatif-0.16.2\src\style.rs:1:15
|
1 | use console::{measure_text_width, Style};
| ^^^^^^^^^^^^^^^^^^ ^^^^^ no `Style` in the root
| |
| no `measure_text_width` in the root
|
note: found an item that was configured out
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:96:44
|
96 | colors_enabled, colors_enabled_stderr, measure_text_width, pad_str, pad_str_with,
| ^^^^^^^^^^^^^^^^^^
note: the item is gated behind the `std` feature
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:94:7
|
94 | #[cfg(feature = "std")]
| ^^^^^^^^^^^^^^^
note: found an item that was configured out
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:98:19
|
98 | Color, Emoji, Style, StyledObject,
| ^^^^^
note: the item is gated behind the `std` feature
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:94:7
|
94 | #[cfg(feature = "std")]
| ^^^^^^^^^^^^^^^
error[E0432]: unresolved imports `console::measure_text_width`, `console::Style`
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\indicatif-0.16.2\src\utils.rs:7:15
|
7 | use console::{measure_text_width, Style};
| ^^^^^^^^^^^^^^^^^^ ^^^^^ no `Style` in the root
| |
| no `measure_text_width` in the root
|
note: found an item that was configured out
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:96:44
|
96 | colors_enabled, colors_enabled_stderr, measure_text_width, pad_str, pad_str_with,
| ^^^^^^^^^^^^^^^^^^
note: the item is gated behind the `std` feature
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:94:7
|
94 | #[cfg(feature = "std")]
| ^^^^^^^^^^^^^^^
note: found an item that was configured out
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:98:19
|
98 | Color, Emoji, Style, StyledObject,
| ^^^^^
note: the item is gated behind the `std` feature
--> C:\Users\Tim\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\console-0.16.0\src\lib.rs:94:7
|
94 | #[cfg(feature = "std")]
| ^^^^^^^^^^^^^^^
Compiling env_logger v0.10.2
Compiling async-trait v0.1.88
Compiling clap_derive v4.5.41
For more information about this error, try `rustc --explain E0432`.
error: could not compile `indicatif` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `pdfrip v2.0.1 (https://github.com/mufeedvh/pdfrip.git#461fe2f5)`, intermediate artifacts can be found at `C:\Users\Tim\AppData\Local\Temp\cargo-installkH0Lca`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Metadata
Metadata
Assignees
Labels
No labels