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

Replace winapi crate with windows crate #16

Merged
merged 3 commits into from Mar 6, 2023
Merged

Conversation

kgrech
Copy link

@kgrech kgrech commented Feb 25, 2023

Closes issue #14

How I tested:

cargo test --all-features
cargo fmt
cargo clippy --all-features

The clippy warning seems to be unrelated, but I've also fixed it since it fails the CI

And then run examples
https://www.yogile.com/alxq57uebw6/21t/share/?vsc=e105adfdf

I've added nu_ansi_term::enable_ansi_support().unwrap(); line a first line for the example main function as it was not called by examples. I am on Win11

@fdncred
Copy link

fdncred commented Feb 27, 2023

Image from the link
image

@fdncred
Copy link

fdncred commented Mar 6, 2023

Thanks

@fdncred fdncred merged commit cad5cf5 into nushell:main Mar 6, 2023
[target.'cfg(target_os="windows")'.dependencies.winapi]
version = "0.3.4"
features = ["consoleapi", "errhandlingapi", "fileapi", "handleapi", "processenv"]
[dependencies.windows]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that be target.'cfg(target_os="windows")'.dependencies.windows?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thankfully fixed by #18

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.

None yet

4 participants