2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-15 00:12:50 +00:00
phetch/src/lib.rs

41 lines
1.1 KiB
Rust
Raw Normal View History

2019-12-22 20:41:45 +00:00
#![allow(unused_must_use)]
#[macro_use]
2019-12-23 19:57:40 +00:00
pub mod utils;
2020-01-11 00:28:17 +00:00
#[macro_use]
2020-01-10 23:59:04 +00:00
pub mod color;
2020-01-12 02:15:07 +00:00
pub mod args;
2020-01-11 00:28:17 +00:00
pub mod bookmarks;
2020-01-09 23:46:55 +00:00
pub mod config;
2019-12-23 19:57:40 +00:00
pub mod gopher;
2019-12-22 20:41:45 +00:00
pub mod help;
pub mod history;
pub mod menu;
2020-01-09 23:10:45 +00:00
pub mod phetchdir;
2019-12-22 20:41:45 +00:00
pub mod text;
pub mod ui;
2019-12-24 08:29:20 +00:00
2020-01-12 03:57:41 +00:00
/// Current version of phetch.
2019-12-25 01:22:12 +00:00
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
2020-01-12 03:57:41 +00:00
/// Current OS. Used to check for updates.
2020-01-04 22:10:51 +00:00
pub const PLATFORM: &str = env!("PLATFORM");
2020-01-12 03:57:41 +00:00
/// Git SHA of current build.
2020-01-06 18:18:27 +00:00
pub const GIT_REF: &str = env!("GIT_REF");
2020-01-12 03:57:41 +00:00
/// Date when this release was built.
2020-01-06 18:18:27 +00:00
pub const BUILD_DATE: &str = env!("BUILD_DATE");
2020-01-12 03:57:41 +00:00
/// Where to file issues. We try to catch and display all errors
/// nicely, but if we have to crash we will try to show this.
2020-01-11 20:55:33 +00:00
pub const BUG_URL: &str = "https://github.com/xvxx/phetch/issues/new";
2020-01-06 18:18:27 +00:00
2020-01-12 03:57:41 +00:00
/// Whether we compiled with TLS support.
#[cfg(feature = "tls")]
pub const TLS_SUPPORT: bool = true;
#[cfg(not(feature = "tls"))]
pub const TLS_SUPPORT: bool = false;
/// Whether we compiled with Tor support.
#[cfg(feature = "tor")]
pub const TOR_SUPPORT: bool = true;
#[cfg(not(feature = "tor"))]
pub const TOR_SUPPORT: bool = false;