cargo-c common questions

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • cargo-c

    build and install C-compatible libraries

    I'm writing this to explain some of the problems cargo-c solves and hopefully give few pointers since the README containing all the documentation maybe grew to be fairly big.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • cbindgen

    A project for generating C bindings from Rust code

    To not generate the header using cbindgen, it will copy the header {crate name}.h from the assets/ directory.

  • meson

    The Meson Build System

    With cargo-c I try to use the best practices to support as many platform as possible, trying to stay in sync with what meson does. Sadly what is conceptually trivial, installing a package, has lots of details that are platform-specific.

  • gentoo

    Official Gentoo ebuild repository (by gentoo-mirror)

    When I notice some rust software sporting a C-API that I'd consider packaging in Gentoo I tend to provide a patch to add the few metadata entries needed to have cargo-c do all the work, some other people politely ask if cargo-c is supported and sometimes it is an uphill battle usually because the project maintainer doesn't know the required effort is minimum or is not aware setting crate-type=cdylib is not enough.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Rust 2030 Christmas list: Subcrate dependencies

    6 projects | /r/rust | 24 Jan 2023
  • cargo-release v0.22 is out!

    1 project | /r/rust | 21 Oct 2022
  • How does Rust Python ffi work?

    3 projects | /r/rust | 10 May 2022
  • cargo-release v0.19

    1 project | /r/rust | 7 Jan 2022
  • SlateDB – An embedded database built on object storage

    3 projects | news.ycombinator.com | 1 Oct 2024

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?