```bash mkdir lib-hello && cd lib-hello
cargo init --name hello_exercism --lib ```
Go to Crate Root Path
bash
vi Cargo.toml
vi src/lib.rs
mkdir tests
touch tests/u_hello.rs
vi tests/u_hello.rs
touch tests/i_hello.rs
vi tests/i_hello.rs
cargo test
Go to Crate Root Path
bash
mkdir examples
touch examples/u_hello.rs
vi examples/u_hello.rs
cargo run --example u_hello
touch examples/i_hello.rs
vi examples/i_hello.rs
cargo run --example i_hello
```bash mkdir bin-hello && cd bin-hello
cargo init --name bin-hello --bin ```
Go to Bin Root Path
bash
echo 'hello_exercism = "0.3.5"' >> Cargo.toml
Go to Bin Root Path ```rust // vi src/main.rs use hello_exercism;
fn main () { println!("{}",helloexercism::hello()); asserteq!("Hello, World!", hello_exercism::hello()); } ```
bash
cargo run main
bash
cargo doc --open --package hello_exercism
bash
mkdir <REPOSITORY>/docs/<PROJECT_NAME>
cargo doc
cp -rf target/doc/. <REPOSITORY>/docs/<PROJECT_NAME>/.
bash
mkdir -p ../../docs/hello-world
cargo doc
cp -rf target/doc/. ../../docs/hello-world/