1 stable release

Uses old Rust 2015

1.0.0 Jun 16, 2017

#14 in #│

Download history 16/week @ 2024-07-22 21/week @ 2024-07-29 17/week @ 2024-08-05 28/week @ 2024-08-12 9/week @ 2024-08-19 8/week @ 2024-08-26 13/week @ 2024-09-02 17/week @ 2024-09-09 23/week @ 2024-09-16 31/week @ 2024-09-23 12/week @ 2024-09-30 15/week @ 2024-10-14 42/week @ 2024-10-21 13/week @ 2024-10-28 13/week @ 2024-11-04

83 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