Skip to content

Can't compile 0.15.12 patch #264

Closed
Closed

Description

@StackOverflowExcept1on

Can't compile 0.15.12 patch due to commit 18760c9?

├── insta v1.43.1
│   ├── console v0.15.12
│   ├── once_cell v1.21.3
│   ├── serde v1.0.219 (*)
│   └── similar v2.7.0
+ cargo clippy --release --all-targets --all-features -- -D warnings
    Checking criterion v0.6.0
    Checking insta v1.43.1
    Checking secp256k1-sys v0.11.0
    Checking ed25519-dalek v2.2.0-pre (https://github.com/baloo/curve25519-dalek?rev=27afeeb#27afeeb9)
    Checking gencode v0.1.0 (/mnt/tmpfs/frost/gencode)
error[E0432]: unresolved import `console::style`
  --> /home/.../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.1/src/utils.rs:19:9
   |
19 | pub use console::style;
   |         ^^^^^^^^^^^^^^ no `style` in the root
   |
note: found an item that was configured out
  --> /home/.../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:97:52
   |
97 |     set_colors_enabled, set_colors_enabled_stderr, style, truncate_str, Alignment, Attribute,
   |                                                    ^^^^^
note: the item is gated behind the `std` feature
  --> /home/.../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:94:7
   |
94 | #[cfg(feature = "std")]
   |       ^^^^^^^^^^^^^^^

error: variables can be used directly in the `format!` string
   --> gencode/src/main.rs:126:13
    |
126 | /             eprintln!(
127 | |                 "WARNING: documentation for {} is not available in base file. This can mean it's a specific type for the ciphersuite, or that there is a bug in gencode",
128 | |                 old_name
129 | |             );
    | |_____________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`

error[E0433]: failed to resolve: could not find `Term` in `console`
  --> /home/.../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.1/src/utils.rs:56:18
   |
56 |         console::Term::stdout().size().1 as usize
   |                  ^^^^ could not find `Term` in `console`
   |
note: found an item that was configured out
  --> /home/.../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:92:42
   |
92 |     user_attended, user_attended_stderr, Term, TermFamily, TermFeatures, TermTarget,
   |                                          ^^^^
note: the item is gated behind the `std` feature
  --> /home/.../.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:90:7
   |
90 | #[cfg(feature = "std")]
   |       ^^^^^^^^^^^^^^^

error: could not compile `gencode` (bin "gencode") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `gencode` (bin "gencode" test) due to 1 previous error
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `insta` (lib) due to 2 previous errors

Activity

  1. djc commented on Jun 26, 2025

    @djc
    Member

    I've yanked 0.15.12 for now.

    Turns out insta depends on console with default-features = false, so we can't release this semver-compatibly.

  2. vient commented on Jun 26, 2025

    @vient

    Observed the same error via indicatif crate

    error[E0432]: unresolved import `console::Term`
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/draw_target.rs:10:5
       |
    10 | use console::Term;
       |     ^^^^^^^^^^^^^ no `Term` in the root
       |
    note: found an item that was configured out
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:92:42
       |
    92 |     user_attended, user_attended_stderr, Term, TermFamily, TermFeatures, TermTarget,
       |                                          ^^^^
    note: the item is gated behind the `std` feature
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:90:7
       |
    90 | #[cfg(feature = "std")]
       |       ^^^^^^^^^^^^^^^
    help: consider importing one of these variants instead
       |
    10 - use console::Term;
    10 + use crate::draw_target::Drawable::Term;
       |
    10 - use console::Term;
    10 + use crate::draw_target::TargetKind::Term;
       |
    
    error[E0432]: unresolved imports `console::measure_text_width`, `console::Style`
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/style.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
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/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
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:94:7
       |
    94 | #[cfg(feature = "std")]
       |       ^^^^^^^^^^^^^^^
    note: found an item that was configured out
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:98:19
       |
    98 |     Color, Emoji, Style, StyledObject,
       |                   ^^^^^
    note: the item is gated behind the `std` feature
      --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/console-0.15.12/src/lib.rs:94:7
       |
    94 | #[cfg(feature = "std")]
       |       ^^^^^^^^^^^^^^^
    ...
    
  3. djc commented on Jun 27, 2025

    @djc
    Member

    I've bumped the version to 0.16.0 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions