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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! A template Rust library crate.
//!
//! **[Crates.io](https://crates.io/crates/template-rust) │ [Repo](https://github.com/alecmocatta/template-rust)**
//!
//! This is template for Rust libraries, comprising a [`hello_world()`] function.
//!
//! # Example
//!
//! ```
//! use template_rust::hello_world;
//!
//! hello_world();
//! // prints: Hello, world!
//! ```
//!
//! # Note
//!
//! Caveat emptor.
// from https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md
/// Print "Hello, world!".
///
/// # Example
///
/// ```
/// use template_rust::hello_world;
///
/// hello_world();
/// // prints: Hello, world!
/// ```
///
/// # Panics
///
/// Will panic if printing fails.