1 stable release

Uses old Rust 2015

1.0.0 Jun 16, 2017

#19 in #path-buf

Download history 9/week @ 2024-01-01 15/week @ 2024-01-08 10/week @ 2024-01-15 9/week @ 2024-01-22 10/week @ 2024-02-05 19/week @ 2024-02-12 31/week @ 2024-02-19 45/week @ 2024-02-26 38/week @ 2024-03-04 34/week @ 2024-03-11 26/week @ 2024-03-18 29/week @ 2024-03-25 61/week @ 2024-04-01 19/week @ 2024-04-08 35/week @ 2024-04-15

146 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