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

Lack of OpenBSD Support #53

Open
VehementHam opened this issue Oct 3, 2023 · 0 comments
Open

Lack of OpenBSD Support #53

VehementHam opened this issue Oct 3, 2023 · 0 comments

Comments

@VehementHam
Copy link

Description:
I encountered an error while trying to use the "starship-battery" Rust library on an OpenBSD system. It appears that the library does not currently support OpenBSD. Below are the technical details of the error message:

Error Message:

error: Support for this target OS is not implemented yet!
        You may want to create an issue: https://github.com/starship/rust-battery/issues/new
  --> /home/vehementham/.cargo/registry/src/github.com-1ecc6299db9ec823/starship-battery-0.8.1/src/platform/mod.rs:27:9
   |
27 | /         compile_error!("Support for this target OS is not implemented yet!\n \
28 | |             You may want to create an issue: https://github.com/starship/rust-battery/issues/new");
   | |__________________________________________________________________________________________________^

error[E0432]: unresolved import `crate::platform::Device`
 --> /home/vehementham/.cargo/registry/src/github.com-1ecc6299db9ec823/starship-battery-0.8.1/src/types/battery.rs:5:5
  |
5 | use crate::platform::Device;
  |     ^^^^^^^^^^^^^^^^^^^^^^^ no `Device` in `platform`

error[E0432]: unresolved import `crate::platform::Iterator`
 --> /home/vehementham/.cargo/registry/src/github.com-1ecc6299db9ec823/starship-battery-0.8.1/src/types/iterator.rs:3:5
  |
3 | use crate::platform::Iterator as PlatformIterator;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Iterator` in `platform`
  |
help: consider importing one of these items instead
  |
3 | use core::iter::Iterator as PlatformIterator;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 | use std::iter::Iterator as PlatformIterator;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 | use uom::lib::iter::Iterator as PlatformIterator;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `crate::platform::Iterator`
 --> /home/vehementham/.cargo/registry/src/github.com-1ecc6299db9ec823/starship-battery-0.8.1/src/types/manager.rs:5:5
  |
5 | use crate::platform::Iterator as PlatformIterator;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Iterator` in `platform`
  |
help: consider importing one of these items instead
  |
5 | use core::iter::Iterator as PlatformIterator;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 | use std::iter::Iterator as PlatformIterator;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 | use uom::lib::iter::Iterator as PlatformIterator;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `crate::platform::Manager`
 --> /home/vehementham/.cargo/registry/src/github.com-1ecc6299db9ec823/starship-battery-0.8.1/src/types/manager.rs:6:5
  |
6 | use crate::platform::Manager as PlatformManager;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Manager` in `platform`
  |
help: consider importing this struct instead
  |
6 | use crate::Manager as PlatformManager;
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0432`.
error: could not compile `starship-battery` due to 5 previous errors; 3 warnings emitted
warning: build failed, waiting for other jobs to finish...
error: failed to compile `starship v1.16.0`, intermediate artifacts can be found at `/tmp/cargo-installu6tL1f`

Environment:

  • Operating System: OpenBSD [Provide the specific version if possible]
  • Rust Compiler Version: [Provide the Rust version you're using]
  • "starship-battery" Version: [Specify the version of the library]

Steps to Reproduce:

  1. Install Rust and Cargo on an OpenBSD system.
  2. Create a Rust project that depends on "starship-battery."
  3. Attempt to compile the project, resulting in the error mentioned above.

Expected Behavior:
I expected "starship-battery" to compile and work correctly on OpenBSD, as it does on other platforms.

Additional Information:
I am willing to assist in any way possible to help add support for OpenBSD to this library, including testing and providing further information about my system.

Links:

Please let me know if you need any additional information or clarification. Thank you for your attention to this matter.

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