1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Copyright 2018 OysterPack Inc.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! This crate defines the public framework API for the OysterPack platform.
//! This crate curates the OysterPack modules in a central location.
//!
//! ## Getting started
//!
//! ```rust
//! #[macro_use]
//! extern crate oysterpack;
//!
//! use oysterpack::log;
//!
//! // gathers build time info for this crate
//! op_build_mod!();
//!
//! fn main() {
//! // get the app's build info that was gathered during compilation
//! let app_build = build::get();
//!
//! // initialize the log system
//! log::init(log_config(),&app_build);
//!
//! // The LogConfig used to initialize the log system can be retrieved.
//! // This enables the LogConfig to be inspected.
//! let log_config = log::config().unwrap();
//!
//! run();
//!
//! // shutdown the logging system
//! log::shutdown();
//! }
//!
//! /// This should be loaded from the app's configuration.
//! /// For this simple example, we are simply using the default LogConfig.
//! /// The default LogConfig sets the root log level to Warn and logs to stdout.
//! fn log_config() -> log::LogConfig {
//! Default::default()
//! }
//!
//! fn run() {
//! // the log macros were re-exported by oysterpack
//! info!("running ...");
//! }
//! ```
pub extern crate oysterpack_app_metadata as app_metadata;
pub extern crate oysterpack_app_metadata_macros;
pub extern crate oysterpack_log as log;
pub extern crate oysterpack_macros;
pub extern crate oysterpack_uid as uid;
pub extern crate chrono;
pub extern crate semver;
pub extern crate serde;
pub extern crate serde_derive;
/// re-export log macros
pub use ;
/// re-exports macros
pub use op_build_mod;
pub use ;
pub use *;