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
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to