Exherbo
GitLab
Packages
dev-rust/corrosion
A tool for integrating Rust into an existing CMake project.
Versions
Slot
Version
Repository
Platforms
0
0.5.2
rust
amd64
arm?
armv7?
~armv8
x86?
Metadata
Homepage
(
https://corrosion-rs.github.io/corrosion/
https://github.com/corrosion-rs/corrosion
)
Summary
A tool for integrating Rust into an existing CMake project
Description
Corrosion is capable of automatically importing executables, static libraries, and dynamic libraries from a Rust package or workspace as CMake targets. The imported static and dynamic library types can be linked into C/C++ CMake targets using the usual CMake functions such as target_link_libraries(). For rust executables and dynamic libraries corrosion provides a corrosion_link_libraries helper function to conveniently add the necessary flags to link C/C++ libraries into the rust target.
Dependencies
(
(
build:
sys-devel/cmake[>=3.24.0]
)
(
build+run:
dev-lang/rust:*[>=1.46]
test:
dev-rust/cbindgen
)
)
Downloads
https://github.com/corrosion-rs/corrosion/archive/v0.5.2.tar.gz -> corrosion-0.5.2.tar.gz
Licences
MIT