On Fri Jun 19, 2026 at 07:55:42AM +0200, Rafael Sadowski wrote:
> A simple CMake module for integrating Rust and CMake. Needs
> cxxbridge-cmd at run-time (see ports@).
> 
> OK?
> 
> Information for inst:corrosion-0.6.1
> 
> Comment:
> CMake module to integrate Rust into a CMake project
> 
> Description:
> 
> Corrosion, formerly known as cmake-cargo, is a tool for integrating Rust
> into an existing CMake project. Corrosion can automatically import
> executables, static libraries, and dynamic libraries from a workspace
> or package manifest (Cargo.toml file).
> 
> Maintainer: Rafael Sadowski <[email protected]>
> 
> WWW: https://github.com/corrosion-rs/corrosion
> 
> 

Please find a new version attached. With this new version, I have tried
to ensure that no errors occur if the version of MODCARGO_CRATES
(cxxbridge-cmd, cxx) and the ports in devel/cxxbridge-cmd differ from
one another.

To avoid it, I use our ENV{MODCMAKE_PORT_BUILD} cmake env, so this
changes will only apply in our ports env.

Normally, corrosion will try to build the cxxbridge-cmd cli tool with
the same version in the cargo file. We don't want that, as we need a
internet connection form the cmake process during the build.

This could cause problems where we have different versions that are
incompatible with one another. I would suggest take that route when the
time comes? OK?

Attachment: corrosion-0.6.1p0.tar.gz
Description: application/tar-gz

Reply via email to