Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with only fancy-base #397

Open
Porges opened this issue Aug 6, 2024 · 0 comments
Open

Cannot build with only fancy-base #397

Porges opened this issue Aug 6, 2024 · 0 comments

Comments

@Porges
Copy link
Contributor

Porges commented Aug 6, 2024

I tried enabling this feature so that I could supply a highlighter for a specific source code type in my library but currently miette does not build with only that flag enabled:

error[E0433]: failed to resolve: function `supports_hyperlinks` is not a crate or module
   --> src\handler.rs:432:41
    |
432 |                 supports_hyperlinks::on(supports_hyperlinks::Stream::Stderr)
    |                                         ^^^^^^^^^^^^^^^^^^^ function `supports_hyperlinks` is not a crate or module

error[E0433]: failed to resolve: use of undeclared crate or module `supports_color`
   --> src\handler.rs:455:36
    |
455 |                 supports_color::on(supports_color::Stream::Stderr).map(|color| color.has_16m)
    |                                    ^^^^^^^^^^^^^^ use of undeclared crate or module `supports_color`

error[E0433]: failed to resolve: function `supports_unicode` is not a crate or module
   --> src\handler.rs:466:38
    |
466 |                 supports_unicode::on(supports_unicode::Stream::Stderr)
    |                                      ^^^^^^^^^^^^^^^^ function `supports_unicode` is not a crate or module

error[E0433]: failed to resolve: use of undeclared crate or module `terminal_size`
   --> src\handler.rs:421:17
    |
421 |                 terminal_size::terminal_size().map(|size| size.0 .0 as usize)
    |                 ^^^^^^^^^^^^^ use of undeclared crate or module `terminal_size`

error[E0433]: failed to resolve: function `supports_hyperlinks` is not a crate or module
   --> src\handler.rs:432:17
    |
432 |                 supports_hyperlinks::on(supports_hyperlinks::Stream::Stderr)
    |                 ^^^^^^^^^^^^^^^^^^^ function `supports_hyperlinks` is not a crate or module

error[E0433]: failed to resolve: use of undeclared crate or module `supports_color`
   --> src\handler.rs:455:17
    |
455 |                 supports_color::on(supports_color::Stream::Stderr).map(|color| color.has_16m)
    |                 ^^^^^^^^^^^^^^ use of undeclared crate or module `supports_color`

error[E0433]: failed to resolve: function `supports_unicode` is not a crate or module
   --> src\handler.rs:466:17
    |
466 |                 supports_unicode::on(supports_unicode::Stream::Stderr)
    |                 ^^^^^^^^^^^^^^^^ function `supports_unicode` is not a crate or module

For more information about this error, try `rustc --explain E0433`.
error: could not compile `miette` (lib) due to 7 previous errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant