Skip to content


The rust package in conda-forge uses CARGO_BUILD_TARGET ( I had to patch Mercurial's to use Rust for the conda-forge package (

I propose a change that would avoid this patch. I tried to have the smallest change possible to have the right path with and without CARGO_BUILD_TARGET. Note that without CARGO_BUILD_TARGET, this gives:

In [2]: os.path.join(
   ...:         'rust', 'target', os.environ.get('CARGO_BUILD_TARGET', ''), 'release'
   ...:     )
Out[2]: 'rust/target/release'

Merge request reports