Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

emmiegit/slog-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slog-mock

This crate has been abandoned. The technique of using let _ did not compile out code as expected. While it does suppress "unused" warnings, the objects are still uninitialized, which doesn't address the performance concerns this crate was made to address.

Previous Description

Build status

Crate to mock slog, returning macros which mimic slog's.

This is not a full drop-in replacement for slog, but a limited subset of its functionality. The goal is to enable crates to provide a feature that compiles out all logging code entirely, in cases where logging is not needed for a specific target due to sensitive performance concerns.

The lint #![forbid(unsafe_code)] is set, and therefore this crate has only safe code.

Available under the terms of the MIT License.

Compilation

This library targets the latest stable Rust. At time of writing, that is 1.55.0.

$ cargo build --release

About

Macros to mock slog logging calls, and produce no output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages