Opened 2 months ago

Last modified 2 months ago

#70745 new enhancement

rust @1.81.0 Add cross compilation targets to port

Reported by: isolated-matrix Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc:
Port: rust

Description

I have been trying to figure out a way to use the MacPorts distribution of Rust to cross compile a program from my Mac to a linux machine for a while now and, as far as I can tell, there is no way to do it. Tutorials online all say that you need to install a 'target' using rustup; unfortunately, the MacPorts distribution of rust does not include rustup. As it is, I cannot find any way to install these targets without also installing a second distribution of Rust on my computer, which I would like to avoid.

I was wondering if it would be possible to include cross compilation targets in the Rust port, or, if it would be easier, to add separate, discrete ports for the cross compilation targets themselves (similar to the way Python packages are handled with MacPorts)?

Change History (1)

comment:1 Changed 2 months ago by isolated-matrix

Summary: rust @ 1.81.0 Add cross compilation targets to portrust @1.81.0 Add cross compilation targets to port
Note: See TracTickets for help on using tickets.