Rust meson-next crate
A build dependency crate for running Meson to build a native library.
This crate is a simple wrapper that invokes the system's meson binary.
Ensure you have both meson and ninja installed. Refer to Meson's manual for specific install instructions for your OS.
This crate is a fork of meson 1.0 by dovee, which is abandoned.
Build Example
.
├── build.rs
├── Cargo.toml
├── clib
│ ├── meson.build
│ ├── squid.h
│ └── squid.c
└── src
└── lib.rs
build.rs:
extern crate meson_next as meson;
use env;
use PathBuf;
Cargo.toml:
# ...
[]
= "1"
meson.build:
project('squid', 'c')
shared_library('squid', 'squid.c')