Mercurial > hg
comparison setup.py @ 44115:e1b8b4e4f496
rust: add a README
In particular to explain how to build any of the rust. It's neither
obvious, nor easy to find out, nor easy to determine if you did it
right without some documentation.
Differential Revision: https://phab.mercurial-scm.org/D7952
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Mon, 20 Jan 2020 18:28:46 -0500 |
parents | 4e05272dd681 |
children | 0ab651b5f77c a7f8160cc4e4 |
comparison
equal
deleted
inserted
replaced
44114:8a3b045d9086 | 44115:e1b8b4e4f496 |
---|---|
1380 | 1380 |
1381 | 1381 |
1382 class RustEnhancedExtension(RustExtension): | 1382 class RustEnhancedExtension(RustExtension): |
1383 """A C Extension, conditionally enhanced with Rust code. | 1383 """A C Extension, conditionally enhanced with Rust code. |
1384 | 1384 |
1385 If the HGRUSTEXT environment variable is set to something else | 1385 If the HGWITHRUSTEXT environment variable is set to something else |
1386 than 'cpython', the Rust sources get compiled and linked within the | 1386 than 'cpython', the Rust sources get compiled and linked within |
1387 C target shared library object. | 1387 the C target shared library object. |
1388 """ | 1388 """ |
1389 | 1389 |
1390 def __init__(self, mpath, sources, rustlibname, subcrate, **kw): | 1390 def __init__(self, mpath, sources, rustlibname, subcrate, **kw): |
1391 RustExtension.__init__( | 1391 RustExtension.__init__( |
1392 self, mpath, sources, rustlibname, subcrate, **kw | 1392 self, mpath, sources, rustlibname, subcrate, **kw |