Skip to content

Unable to Build Project on Windows due to Unix-specific Dependencies #210

@manuelinfosec

Description

@manuelinfosec

I encountered an error while attempting to build the project on my Windows machine. The error message indicates that the import tokio::signal::unix::Signal is unresolved, suggesting that the project is relying on Unix-specific dependencies that are not compatible with Windows.

Error message:

error[E0432]: unresolved import `tokio::signal::unix`
 --> crates\tripwire\src\signalstream.rs:6:20
  |
6 | use tokio::signal::unix::Signal;
  |                    ^^^^ could not find `unix` in `signal`

error[E0432]: unresolved import `tokio::signal::unix`
 --> crates\tripwire\src\tripwire.rs:9:13
  |
9 |     signal::unix::{signal, SignalKind},
  |             ^^^^ could not find `unix` in `signal`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `tripwire` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

As I am on a Windows machine, I am unable to build the project due to this dependency on Unix-specific functionality.

Proposed Solution

I intend to contribute to the project by extending its codebase to support development on Windows. My plan involves refactoring the following files:

  • crates\tripwire\src\signalstream.rs
  • crates\tripwire\src\tripwire.rs

To achieve compatibility with Windows, I propose using conditional compilation (#[cfg()] attributes) to introduce different code paths based on the target platform. This approach will allow the project to maintain cross-platform compatibility while accommodating Windows-specific requirements. At least, for maximizing the project's accessibility to contributions from the community to ensure developers without access to Unix-based machines can participate.

I am willing to work on implementing these changes and submitting a pull request. However, I would appreciate guidance and feedback from the maintainers on the best practices for contributing in the project.

Looking forward to contributing to the project and resolving this issue. Thank you for your attention to this matter.

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