Crates.io | varnish-sys |
lib.rs | varnish-sys |
version | |
source | src |
created_at | 2021-10-31 01:39:17.45276 |
updated_at | 2024-12-12 23:38:21.278591 |
description | A Rust framework for creating Varnish Caching Proxy extensions |
homepage | |
repository | https://github.com/gquintard/varnish-rs |
max_upload_size | |
id | 474571 |
Cargo.toml error: | TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
The varnish
crate provides a safe and idiomatic interface to the Varnish C API, allowing you to write Varnish modules (VMODs) in Rust. See the crate API for more details.
Some VMODs that use this library:
Don't hesitate to open GitHub issues if something is unclear or impractical. You can also join us on discord.
When compiling, this library generates bindings from the libvarnish
headers. Depending on you Linux distribution, you may need to install the related package, which could be named varnish-devel
, varnish-dev
or maybe libvarnish-dev
.
Before v0.1.0, this library relied on a specific version of libvarnish
. Since v0.1.0, this is no longer the case, and it should work with multiple supported Varnish versions.
varnish-rs (Rust) | libvarnish (C) |
---|---|
0.1.0 - 0.2.0 | 7.4 - 7.6 |
0.0.18 - 0.0.19 | 7.5 |
0.0.17 | 7.4 |
0.0.15 - 0.0.16 | 7.3 |
0.0.12 - 0.0.14 | 7.2 |
0.0.9 - 0.0.11 | 7.1 |
0.0.0 - 0.0.8 | 7.0 |
make
.
Install it with cargo install just
.just
.just test
.It is recommended if your varnish
headers are installed where pkg-config
can find them. If not, you can set the VARNISH_INCLUDE_PATHS
environment variable to a colon-separated list of paths to search, but note that build.rs
script cannot detect libvarnish
version, and assumes the latest.
VARNISH_INCLUDE_PATHS=/my/custom/libpath:/my/other/custom/libpath cargo build
See CONTRIBUTING.md
for other details.
Licensed under the 3-Clause BSD License (LICENSE or https://opensource.org/license/BSD-3-clause)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.