1 stable release

Uses old Rust 2015

1.0.0 Jun 16, 2017

#19 in #path-buf

Download history 27/week @ 2024-03-14 25/week @ 2024-03-21 52/week @ 2024-03-28 31/week @ 2024-04-04 29/week @ 2024-04-11 33/week @ 2024-04-18 31/week @ 2024-04-25 24/week @ 2024-05-02 33/week @ 2024-05-09 28/week @ 2024-05-16 23/week @ 2024-05-23 24/week @ 2024-05-30 21/week @ 2024-06-06 26/week @ 2024-06-13 27/week @ 2024-06-20 13/week @ 2024-06-27

90 downloads per month
Used in 3 crates (2 directly)

MIT license

2KB

Build Example

.
├── build.rs
├── Cargo.toml
├── clib
│   ├── meson.build
│   ├── squid.h
│   └── squid.c
└── src
    └── lib.rs

build.rs:

extern crate meson;
use std::env;
use std::path::PathBuf;

fn main() {
    let build_path = PathBuf::from(env::var("OUT_DIR").unwrap());
    build_path.join("build");
    let build_path = build_path.to_str().unwrap();

    println!("cargo:rustc-link-lib=squid");
    println!("cargo:rustc-link-search=native={}", build_path);
    meson::build("clib", build_path);
}

Cargo.toml:

# ...

[build-dependencies]
meson = "1.0.0"

meson.build:

project('squid', 'c')
shared_library('squid', 'squid.c')

No runtime deps