How to create my own crate?

Oh yes...I did..but couldn't understand how to build a library ...