Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Jan 29, 2023
0 parents commit 772006b
Show file tree
Hide file tree
Showing 25 changed files with 2,973 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Linux

on:
push:
pull_request:
branches: [ "latest" ]

env:
CARGO_TERM_COLOR: always

jobs:
default_features:
name: Default Features
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init
- name: Update Rust
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Build
run: cargo build --verbose
- name: Run Tests
run: cargo test --verbose
- name: Test Formatting
run: cargo fmt --all -- --check
- name: Build Docs
run: cargo doc
- name: Build Package
run: cargo package --verbose
linux_features:
name: All Linux Features
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- name: Install Prereqs
run: |
sudo apt-get update
sudo apt-get install libsystemd-dev
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init
- name: Update Rust
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Build
run: cargo build --verbose --features journald,network,socket
- name: Run Tests
run: cargo test --verbose --features journald,network,socket
- name: Test Formatting
run: cargo fmt --all -- --check
- name: Build Docs
run: cargo doc --features journald,network,socket
- name: Build Package
run: cargo package --verbose --features journald,network,socket
67 changes: 67 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Mac

on:
push:
pull_request:
branches: [ "latest" ]

env:
CARGO_TERM_COLOR: always

jobs:
default_features:
name: Default Features
runs-on: macos-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init
- name: Update Rust
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Build
run: cargo build --verbose
- name: Run Tests
run: cargo test --verbose
- name: Test Formatting
run: cargo fmt --all -- --check
- name: Build Docs
run: cargo doc
- name: Build Package
run: cargo package --verbose
mac_features:
name: All Mac Features
runs-on: macos-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init
- name: Update Rust
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Build
run: cargo build --verbose --features network,socket
- name: Run Tests
run: cargo test --verbose --features network,socket
- name: Test Formatting
run: cargo fmt --all -- --check
- name: Build Docs
run: cargo doc --features network,socket
- name: Build Package
run: cargo package --verbose --features network,socket
67 changes: 67 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Windows

on:
push:
pull_request:
branches: [ "latest" ]

env:
CARGO_TERM_COLOR: always

jobs:
default_features:
name: Default Features
runs-on: windows-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init
- name: Update Rust
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Build
run: cargo build --verbose
- name: Run Tests
run: cargo test --verbose
- name: Test Formatting
run: cargo fmt --all -- --check
- name: Build Docs
run: cargo doc
- name: Build Package
run: cargo package --verbose
windows_features:
name: All Windows Features
runs-on: windows-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init
- name: Update Rust
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Build
run: cargo build --verbose --features network,wel
- name: Run Tests
run: cargo test --verbose --features network,wel
- name: Test Formatting
run: cargo fmt --all -- --check
- name: Build Docs
run: cargo doc --features network,wel
- name: Build Package
run: cargo package --verbose --features network,wel
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/src/stumpless_bindings.rs
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog
All notable changes to the stumpless logger will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.1.0] - 2023-01-28
### Added
- Logging to stdout, stderr, files, journald, network, socket, and Windows
Event Log endpoints.
- `journald`, `network`, `socket`, and `wel` features based on the target types
within stumpless-sys.
24 changes: 24 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cff-version: 1.2.0
title: Stumpless CLI and Rust Library
type: software
license: Apache-2.0
repository-code: "https://github.com/goatshriek/stumpless-logger"
version: 0.1.0
date-released: 2023-01-28
keywords:
- cli
- journald
- logging
- library
- rust
- "structured logging"
- syslog
- systemd
- "windows event log"
authors:
- given-names: Joel
family-names: Anderson
email: [email protected]
message: >-
If you use this software, please cite it using the
metadata from this file.
Loading

0 comments on commit 772006b

Please sign in to comment.