mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
7316c4cc22
Summary: The library already has a way to wrap a Python object into a Rust object that exposes the Rust Read/Write interface. This is the reverse direction for the Write interface. The initial intention is to expose Rust stdout as described in D19702533. However, I found Python's `sys.stdout.buffer` also enforces utf-8 encoding on Windows (unless PYTHONLEGACYWINDOWSSTDIO is set). So Python's stdout actually behaves similarly with Rust's stdout on Windows and is okay to use. That said, it's still useful to have this abstraction, for streampager [1] integration. [1]: https://github.com/markbt/streampager/ Reviewed By: sfilipco Differential Revision: D19716127 fbshipit-source-id: ba39898122561d9a49b7080ee95d7c940540eb40 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |