D2057: rust implementation of hg status

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Mar 10 06:20:09 EST 2018


yuja added a comment.


  > I am looking at Mozilla's rust winapi bindings, let me see if I can directly wrap around winapi::um::fileapi::FindFirstFileA <https://docs.rs/winapi/*/x86_64-pc-windows-msvc/winapi/um/fileapi/fn.FindFirstFileA.html>
  
  That's probably a hard way. I was thinking of something converting
  between OsStr (i.e. Path) and MBCS bytes by using Win32 API, instead
  of calling out the "A" API.
  
  https://msdn.microsoft.com/en-us/library/windows/desktop/dd319072(v=vs.85).aspx
  
  We don't do that in Python, but Rust's type system will help making it right.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2057

To: Ivzhh, #hg-reviewers, kevincox
Cc: yuja, glandium, krbullock, indygreg, durin42, kevincox, mercurial-devel


More information about the Mercurial-devel mailing list