You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phetch/src/lib.rs

41 lines
1.1 KiB
Rust

5 years ago
#![allow(unused_must_use)]
#[macro_use]
5 years ago
pub mod utils;
4 years ago
#[macro_use]
pub mod color;
pub mod args;
4 years ago
pub mod bookmarks;
pub mod config;
5 years ago
pub mod gopher;
5 years ago
pub mod help;
pub mod history;
pub mod menu;
pub mod phetchdir;
5 years ago
pub mod text;
pub mod ui;
4 years ago
/// Current version of phetch.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
4 years ago
/// Current OS. Used to check for updates.
pub const PLATFORM: &str = env!("PLATFORM");
4 years ago
/// Git SHA of current build.
pub const GIT_REF: &str = env!("GIT_REF");
4 years ago
/// Date when this release was built.
pub const BUILD_DATE: &str = env!("BUILD_DATE");
4 years ago
/// 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.
4 years ago
pub const BUG_URL: &str = "https://github.com/xvxx/phetch/issues/new";
4 years ago
/// 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;