0.1.0
This commit is contained in:
12
kb-logging/Cargo.toml
Normal file
12
kb-logging/Cargo.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# file: kb-logging/Cargo.toml
|
||||
# version: 1
|
||||
|
||||
[package]
|
||||
name = "kb-logging"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
5
kb-logging/src/constants.rs
Normal file
5
kb-logging/src/constants.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
// file: kb-logging/src/constants.rs
|
||||
// version: 1
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const TRACING_TARGET: &str = "kb-logging";
|
||||
18
kb-logging/src/lib.rs
Normal file
18
kb-logging/src/lib.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
// file: kb-logging/src/lib.rs
|
||||
// version: 1
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
//! Logging contracts for Khadhroony Bot3.
|
||||
|
||||
mod constants;
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) use crate::constants::TRACING_TARGET;
|
||||
|
||||
/// Returns the canonical tracing target.
|
||||
pub fn tracing_target() -> &'static str {
|
||||
return crate::TRACING_TARGET;
|
||||
}
|
||||
Reference in New Issue
Block a user