conradkleinespel / rpassword

Cross platform Rust library to read a password in the terminal (Linux, BSD, OSX, Windows, WASM).
Apache License 2.0
243 stars 38 forks source link

Added support for WASM #62

Closed john-sharratt closed 3 years ago

john-sharratt commented 3 years ago

It shows the input in clear text which is not ideal - need to add the TTY system calls to WASI for it to prevent the echo. Will work on this next but for now this at least means it will compile on WASM targets

conradkleinespel commented 3 years ago

Hi @john-sharratt , you've made your PR on the mirror repository, PRs should be done on this repository instead: https://github.com/conradkleinespel/duck/tree/master/projects/rpassword. Would you mind opening it there?

There are instructions on how to use this project in its README.md. I'm happy to explain in more detail or rephrase the README if needed :+1:

john-sharratt commented 3 years ago

Is this what you were after? https://github.com/conradkleinespel/duck/pull/24

conradkleinespel commented 3 years ago

Yes, great! Thanks! :pray: I will have a look ASAP