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

fix !unix builds #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

babnskidata
Copy link

Fix "failed to resolve: use of undeclared type ErrorKind" error.

Fix "failed to resolve: use of undeclared type `ErrorKind`" error.
@jszwedko
Copy link
Contributor

We just ran into this on Vector too: vectordotdev/vector#20955

The errors:

error[E0433]: failed to resolve: use of undeclared type `ErrorKind`
   --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syslog-7.0.0\src/lib.rs:264:9
    |
264 |     Err(ErrorKind::UnsupportedPlatform)?
    |         ^^^^^^^^^ use of undeclared type `ErrorKind`
    |
help: consider importing this enum
    |
57  + use io::ErrorKind;
    |

error[E0433]: failed to resolve: use of undeclared type `ErrorKind`
   --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syslog-7.0.0\src/lib.rs:275:9
    |
275 |     Err(ErrorKind::UnsupportedPlatform)?
    |         ^^^^^^^^^ use of undeclared type `ErrorKind`
    |
help: consider importing this enum
    |
57  + use io::ErrorKind;
    |

error[E0433]: failed to resolve: use of undeclared type `ErrorKind`
   --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syslog-7.0.0\src/lib.rs:390:9
    |
390 |     Err(ErrorKind::UnsupportedPlatform)?
    |         ^^^^^^^^^ use of undeclared type `ErrorKind`
    |
help: consider importing this enum
    |
57  + use io::ErrorKind;
    |

error[E0433]: failed to resolve: use of undeclared type `ErrorKind`
   --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba[1500](https://github.com/vectordotdev/vector/actions/runs/10428621847/job/28885012430#step:6:1501)1f\syslog-7.0.0\src/lib.rs:422:9
    |
422 |     Err(ErrorKind::UnsupportedPlatform)?
    |         ^^^^^^^^^ use of undeclared type `ErrorKind`
    |
help: consider importing this enum
    |
57  + use io::ErrorKind;

@tisonkun
Copy link

FWIW I made a syslog library https://github.com/fast/fasyslog/ that implement similar functionality and guard the builds with CI.

@jszwedko
Copy link
Contributor

Small bump on this @Geal . Do you think we could merge it to unblock upgrading to the latest version?

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

Successfully merging this pull request may close these issues.

3 participants