env_next_door/lib.rs
1// License: see LICENSE file at root directory of `master` branch
2
3//! # `env-next-door`
4//!
5//! ## Project
6//!
7//! - Repository: <https://bitbucket.org/haibison/env-next-door>
8//! - License: Nice License 1.0.0 _(see LICENSE file at root directory of `master` branch)_
9//! - _This project follows [Semantic Versioning 2.0.0]_
10//!
11//! ## Features
12//!
13//! This program helps you run commands and pass environment variables to them.
14//!
15//! Currently keys are limited to: `a-z`, `A-Z`, `0-9`, `-`, `_`, `.`. Values can be anything that your shell supports. Both keys and values
16//! will be trimmed.
17//!
18//! ## Failures
19//!
20//! Panics, missing documentation, missing tests... are my failures. It would help me a lot if you file new issues when you encounter such
21//! problems.
22//!
23//! Thank you,
24//!
25//! [Semantic Versioning 2.0.0]: https://semver.org/spec/v2.0.0.html
26
27#![warn(missing_docs)]
28
29// ╔═════════════════╗
30// ║ IDENTIFIERS ║
31// ╚═════════════════╝
32
33macro_rules! code_name { () => { "env-next-door" }}
34macro_rules! version { () => { "0.8.1" }}
35
36/// # Crate name
37pub const NAME: &str = "env-next-door";
38
39/// # Crate code name
40pub const CODE_NAME: &str = code_name!();
41
42/// # ID of this crate
43pub const ID: &str = concat!(
44 "81e10a53-7206ec32-2806a637-3aadb8de-26f9454a-4983b618-a958912b-45bc7ddf-",
45 "63a697f0-9b3d7987-af7fd9ef-732aa2b1-b36254fa-87f8b5b3-11bd2266-c96522e0",
46);
47
48/// # Crate version
49pub const VERSION: &str = version!();
50
51/// # Crate release date (year/month/day)
52pub const RELEASE_DATE: (u16, u8, u8) = (2019, 8, 16);
53
54/// # Tag, which can be used for logging...
55pub const TAG: &str = concat!(code_name!(), "::81e10a53::", version!());
56
57// ╔════════════════════╗
58// ║ IMPLEMENTATION ║
59// ╚════════════════════╝
60
61pub mod version_info;
62
63#[test]
64fn test_crate_version() {
65 assert_eq!(VERSION, env!("CARGO_PKG_VERSION"));
66}