Skip to content

Meson Integration of Cargo based Rust Code

Notifications You must be signed in to change notification settings

c-util/c-meson-cargo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c-meson-cargo

Meson Integration of Cargo based Rust Code

The c-meson-cargo project provides Meson-Build integration of Cargo-based Rust code. It fully integrates crates.io dependency resolution into the meson build system, including vendoring support, offline builds, meson-dist assembly, as well as independent cargo project management.

This project is meant to be included as meson-subproject and then provides hooks to include your custom Cargo.toml in the build. All output artifacts can then be used in your Meson build configuration and be linked into other Meson targets.

Since Meson does not provide external module support, nor custom functions, the integration has a suboptimal API and requires integrators to take some extra steps. However, this can be easily remedied in the future if Meson starts providing more user-friendly external module support.

Project

Requirements

The requirements for this project are:

  • cargo >= 1.64
  • coreutils
  • jq >= 1.6
  • meson >= 1.0

Repository:

License:

  • MIT OR Apache-2.0 OR LGPL-2.1-or-later
  • See AUTHORS file for details.