About this Crate hello_exercism
- How to Create a Workspace
- How to Create and Publish an Own Crate
- How to Use an Own Crate
- How te develop the unit tests with the folder 'tests'
- How te develop the unit tests for private codes
- How te develop the integration tests with the folder 'tests'
- How te develop the integration tests with the folder 'src'
Table of Contents
- I. create a workspace
- II. develop the crate
- III. use the crate
- IV. create the crate doc in local version
- V. create the crate doc in server version
I. create a workspace
# create a workspaces
&&
# create a workspace 'hello-world'
&&
# create a configration for the workspace
# four crates for this workspace
# the follow lines is ONE command
II. develop the crate
1. create the default crate
&&
# this is Crate Root Path
2. develop the crate source and test codes for folder 'tests'
- Go to Crate Root Path
3. develop the example codes
- Go to Crate Root Path
4. develop the crate source and test codes for folder 'src'
5. publish the own crate to crates.io
- register the crates.io with github.com account
- login the crates.io
- get the token
- run the follow command in computer
## run the follow commant at A time
## can repeat the follow commands
## 1. commit and push the codes in github.com
## 2. change the release github.com
III. use the crate
1. create the default Bin
&&
# this is Bin Root Path
2. configure the file Cargo.toml
- Go to Bin Root Path
3. edit the rust file main.rs
- Go to Bin Root Path
// vi src/main.rs
use hello_exercism;
4. run the Bin program
- Go to Bin Root Path
IV. create the crate doc in local version
- Go to Crate Root Path
V. create the crate doc in server version
- github.com >> >> Setting >> Options >> GitHub Pages >> (INFO...)
- Go to Crate Root Path
- Example:
- Go to Crate Root Path