D2057: rust implementation of hg status
kevincox (Kevin Cox)
phabricator at mercurial-scm.org
Thu Mar 8 14:12:59 EST 2018
kevincox added a comment.
Rust has platform independent types `PathBuf` <https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html> and `&Path` <https://doc.rust-lang.org/stable/std/path/struct.Path.html> for paths and `OsString` <https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html> and `&OsStr` <https://doc.rust-lang.org/stable/std/ffi/struct.OsStr.html> for strings (owned and references respectively. They do have os-specific extensions but as long as you don't use them it should be cross platform. That being said, if you are serializing and deserializing them you may need to write some platform dependant code.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2057
To: Ivzhh, #hg-reviewers, kevincox
Cc: glandium, krbullock, indygreg, durin42, kevincox, mercurial-devel
More information about the Mercurial-devel
mailing list