D5434: rust-cpython: started cpython crate bindings

2018-12-15 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGa3ba080b3118: rust-cpython: start cpython crate bindings (authored by gracinet, committed by ). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D5434?vs=12871&id=12883#toc REPOSITORY rHG Merc

D5434: rust-cpython: started cpython crate bindings

2018-12-15 Thread yuja (Yuya Nishihara)
yuja added a comment. I've queued the first 5 patches, thanks. Please send a follow up to fix nits and minor issues. > +py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| { > +m.add( > +py, > +"__doc__", > +"Mercurial core concept

Re: D5434: rust-cpython: started cpython crate bindings

2018-12-15 Thread Yuya Nishihara
I've queued the first 5 patches, thanks. Please send a follow up to fix nits and minor issues. > +py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| { > +m.add( > +py, > +"__doc__", > +"Mercurial core concepts - Rust implementation", > +)?; > + > +

D5434: rust-cpython: started cpython crate bindings

2018-12-15 Thread gracinet (Georges Racinet)
gracinet created this revision. Herald added subscribers: mercurial-devel, kevincox, durin42. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This changeset introduces the hg-cpython crate, that compiles as a shared library holding a whole Python package (mercurial.rustext), with onl