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

No windows support #1

Open
crlf0710 opened this issue Apr 18, 2019 · 4 comments
Open

No windows support #1

crlf0710 opened this issue Apr 18, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@crlf0710
Copy link

It seems it only supports linux?

@rabite0
Copy link
Owner

rabite0 commented Apr 18, 2019

Since OsStr(ing)Ext is platform specific, no, no Windows support at this time. I can take a look at how much work it would be to support Windows.

@rabite0 rabite0 self-assigned this Apr 18, 2019
@rabite0 rabite0 added the enhancement New feature or request label Apr 18, 2019
@rabite0
Copy link
Owner

rabite0 commented Jan 22, 2020

This took a while, but Windows has some (experimental) support now. If you still care feel free to check it out.

@Bromeon
Copy link

Bromeon commented Oct 12, 2020

Hi, I just came across this crate, and it still fails to compile on Windows:
[Edit]: I fixed part of it, see PR linked below.

cargo build
    Updating crates.io index
   Compiling either v1.6.1
   Compiling itertools v0.8.2
   Compiling osstrtools v0.2.2
error[E0432]: unresolved import `os_str_bytes`
   --> ~\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:679:13
    |
679 |         use os_str_bytes::OsStringBytes;
    |             ^^^^^^^^^^^^ use of undeclared type or module `os_str_bytes`

error[E0432]: unresolved import `os_str_bytes`
   --> ~\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:686:13
    |
686 |         use os_str_bytes::OsStringBytes;
    |             ^^^^^^^^^^^^ use of undeclared type or module `os_str_bytes`

error[E0432]: unresolved import `os_str_bytes`
   --> ~\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:742:13
    |
742 |         use os_str_bytes::OsStrBytes;
    |             ^^^^^^^^^^^^ use of undeclared type or module `os_str_bytes`

error[E0405]: cannot find trait `WinOsStr` in this scope
   --> ~\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:740:6
    |
740 | impl WinOsStr for OsStr {
    |      ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `bytes` in this scope
   --> ~\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:754:19
    |
754 |         unsafe { (bytes as *const _).cast:() }
    |                   ^^^^^                  - help: maybe you meant to write a path separator here: `::`
    |                   |
    |                   not found in this scope

error: aborting due to 5 previous errors

@EliSauder
Copy link

EliSauder commented Feb 25, 2021

I recently found this crate and I love the idea of it but I haven't been able to get it working. Upon building, I get the following errors.

error[E0405]: cannot find trait `WinOsStr` in this scope
   --> C:\Users\esauder\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:740:6
    |
740 | impl WinOsStr for OsStr {
    |      ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `bytes` in this scope
   --> C:\Users\esauder\.cargo\registry\src\github.com-1ecc6299db9ec823\osstrtools-0.2.2\src\lib.rs:754:19
    |
754 |         unsafe { (bytes as *const _).cast:() }
    |                   ^^^^^                  - help: maybe you meant to write a path separator here: `::`
    |                   |
    |                   not found in this scope

error: aborting due to 2 previous errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants