[package] authors = ["Nick Babcock "] name = "collectd-plugin" version = "0.15.0" description = "Provides ergonomic API ontop of collectd's C interface and macro for defining plugins easier" repository = "https://github.com/nickbabcock/collectd-rust-plugin" readme = "README.md" keywords = ["collectd", "plugin"] categories = ["external-ffi-bindings"] license = "MIT" edition = "2018" [package.metadata.docs.rs] features = ["stub"] [badges] travis-ci = { repository = "nickbabcock/collectd-rust-plugin" } [build-dependencies] regex = "1" bindgen = { version = "0.69.1", optional = true } [dependencies] chrono = "0.4.0" bitflags = "2.4" memchr = "2" log = "0.4" env_logger = { version = "0.10", default-features = false } serde = { version = "1", features = ["derive"], optional = true } libc = { version = "0.2" } [dev-dependencies] serde = { version = "1", features = ["derive"] } serde_test = "1.0" criterion = "0.5" log = { version = "0.4", features = ["serde"] } num_cpus = "1.0" anyhow = "1.0" libc = "0.2" trybuild = "1.0" doc-comment = "0.3" [features] stub = [] regex_log_filter = ["env_logger/regex"] default = ["serde"] [[example]] name = "myerror" crate-type = ["cdylib"] [[example]] name = "readme" crate-type = ["cdylib"] [[example]] name = "loadrust" path = "examples/load.rs" crate-type = ["cdylib"] [[example]] name = "load_with_metadata" path = "examples/load_with_metadata.rs" crate-type = ["cdylib"] [[example]] name = "write_logrs" crate-type = ["cdylib"] [[example]] name = "write_graphite" crate-type = ["cdylib"] [[bench]] name = "collectd_bench" harness = false