Skip to content

Commit

Permalink
update stumpless to v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek authored May 27, 2024
1 parent c4b27ff commit 729ba8b
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 25 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.3.0] - 2024-05-27
### Added
- `sqlite` feature for Sqlite3 targets in stupmless.

### Changed
- Updated version of stumpless to v2.2.0.


## [0.2.1] - 2024-05-02
### Security
- Addressed Github Security Advisory
Expand Down
7 changes: 4 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ cff-version: 1.2.0
title: Stumpless Rust FFI Bindings
license: Apache-2.0
repository-code: "https://github.com/goatshriek/stumpless-sys"
version: 0.1.1
date-released: 2023-01-18
version: 0.3.0
date-released: 2024-05-27
keywords:
- bindings
- ffi
- journald
- logging
- library
- rust
- sqlite
- "structured logging"
- syslog
- systemd
Expand All @@ -19,7 +20,7 @@ type: software
authors:
- given-names: Joel
family-names: Anderson
email: joelanderson333@gmail.com
email: joel@goatshriek.com
message: >-
If you use this software, please cite it using the
metadata from this file.
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "stumpless-sys"
description = "Bindings for the Stumpless logging library."
version = "0.2.1"
version = "0.3.0"
authors = ["Joel Anderson <[email protected]>"]
edition = "2021"
repository = "https://github.com/goatshriek/stumpless-sys/"
Expand All @@ -10,13 +10,14 @@ keywords = ["bindings", "ffi", "library", "log", "logging"]
categories = ["external-ffi-bindings"]

[dependencies]
libc = "0.2.154"
libc = "0.2.155"

[features]
default = ["network"]
journald = []
network = []
socket = []
sqlite = []
wel = []

[build-dependencies]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Linux Builds](https://github.com/goatshriek/stumpless-sys/actions/workflows/linux.yml/badge.svg?branch=latest)](https://github.com/goatshriek/stumpless-sys/actions/workflows/linux.yml)
[![Windows](https://github.com/goatshriek/stumpless-sys/actions/workflows/windows.yml/badge.svg?branch=latest)](https://github.com/goatshriek/stumpless-sys/actions/workflows/windows.yml)
[![Mac](https://github.com/goatshriek/stumpless-sys/actions/workflows/mac.yml/badge.svg?branch=latest)](https://github.com/goatshriek/stumpless-sys/actions/workflows/mac.yml)
[![Gitter](https://badges.gitter.im/stumpless/community.svg)](https://gitter.im/stumpless/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

**Rust Bindings for the Stumpless C API.**
Expand Down
9 changes: 9 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ fn main() {
} else {
"OFF"
};
let sqlite_enabled = if cfg!(feature = "sqlite") {
"ON"
} else {
"OFF"
};
let wel_enabled = if cfg!(feature = "wel") { "ON" } else { "OFF" };

let stumpless_out = cmake::Config::new("stumpless")
.define("BUILD_SHARED_LIBS", "OFF")
.define("ENABLE_JOURNALD_TARGETS", journald_enabled)
.define("ENABLE_NETWORK_TARGETS", network_enabled)
.define("ENABLE_SOCKET_TARGETS", socket_enabled)
.define("ENABLE_SQLITE3_TARGETS", sqlite_enabled)
.define("ENABLE_WINDOWS_EVENT_LOG_TARGETS", wel_enabled)
.build();

Expand All @@ -36,6 +42,9 @@ fn main() {
if cfg!(feature = "journald") {
println!("cargo:rustc-link-lib=systemd");
}
if cfg!(feature = "sqlite") {
println!("cargo:rustc-link-lib=sqlite3");
}
if cfg!(feature = "wel") {
println!("cargo:rustc-link-lib=ktmw32");
}
Expand Down
2 changes: 1 addition & 1 deletion stumpless
Submodule stumpless updated 302 files

0 comments on commit 729ba8b

Please sign in to comment.