1 stable release

Uses old Rust 2015

1.0.0 Jun 16, 2017

#20 in #path-buf

Download history 13/week @ 2023-12-09 18/week @ 2023-12-16 11/week @ 2023-12-23 6/week @ 2023-12-30 13/week @ 2024-01-06 15/week @ 2024-01-13 9/week @ 2024-01-20 1/week @ 2024-01-27 6/week @ 2024-02-03 17/week @ 2024-02-10 35/week @ 2024-02-17 39/week @ 2024-02-24 31/week @ 2024-03-02 42/week @ 2024-03-09 25/week @ 2024-03-16 20/week @ 2024-03-23

127 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