docify_test/lib.rs
1
2//! A test crate for Docify functionality
3//!
4//! This crate demonstrates how to use Docify to embed code examples in documentation.
5/// This function demonstrates Docify's embed functionality.
6///
7/// Here's an example function:
8///
9#[doc = docify::embed!("src/example.rs", example_function)]
10///
11/// And here's an example struct:
12///
13#[doc = docify::embed!("src/example.rs", ExampleStruct)]
14///
15/// We can also embed methods:
16///
17#[doc = docify::embed!("src/example.rs", example_method)]
18pub fn docify_test() {
19 println!("This function has Docify embeds in its documentation.");
20}