piston_mc/
lib.rs

1#![doc = include_str!("../.wiki/Home.md")]
2
3// Logging setup: use real log crate when feature enabled, otherwise use no-op stubs
4#[cfg(feature = "log")]
5#[macro_use]
6extern crate log;
7
8#[cfg(not(feature = "log"))]
9#[macro_use]
10mod log_stub;
11
12#[cfg(feature = "assets")]
13pub mod assets;
14//#[cfg(feature = "downloads")]
15//pub mod download_util;
16#[cfg(feature = "java")]
17pub mod java;
18pub mod manifest_v2;
19#[cfg(feature = "news")]
20pub mod news;
21#[cfg(any(
22    feature = "patch-notes",
23    feature = "java-patch-notes",
24    feature = "bedrock-patch-notes",
25    feature = "dungeons-patch-notes",
26    feature = "launcher-patch-notes"
27))]
28pub mod patch_notes;
29pub mod sha_validation;
30pub mod version_manifest;
31
32#[cfg(test)]
33#[cfg(feature = "log")]
34pub(crate) fn setup_logging() {
35    _ = pretty_env_logger::env_logger::builder().is_test(true).format_timestamp(None).filter_level(log::LevelFilter::Trace).try_init();
36}