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
//! **LI**cense **E**mbedding **S**ystem
//! 
//! Wraps and reformats the results of [cargo-about] to embed license text and information
//! inside your console program, as a means of complying with licensing requirements.
//! 
//! # Examples
//! 
//! ```
//! println!("{}", lies::licenses_text!()); // Monochrome
//! println!("{}", lies::licenses_ansi!()); // https://en.wikipedia.org/wiki/ANSI_escape_code
//! ```
//! 
//! [cargo-about]:                  https://github.com/EmbarkStudios/cargo-about/

use proc_macro_hack::proc_macro_hack;

/// Format licensing information as a string for display with fixed-width fonts.
/// 
/// # Example
/// 
/// ```rust
/// println!("{}", lies::licenses_text!());
/// ```
#[proc_macro_hack]
pub use lies_impl::licenses_text;

/// Format licensing information as a string with [ANSI Color Escape Codes] for display with fixed-width fonts.
/// 
/// # Example
/// 
/// ```rust
/// println!("{}", lies::licenses_ansi!());
/// ```
/// 
/// [ANSI Color Escape Codes]:      https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
/// [cargo-about]:                  https://github.com/EmbarkStudios/cargo-about/
#[proc_macro_hack]
pub use lies_impl::licenses_ansi;