Rust and Cargo 1 · Projects and toolchain

Create a new library

Create a library crate with a lib.rs.

cargo new my-lib --lib

Official Rust and Cargo 1 documentation

More projects and toolchain commands

All projects and toolchain commands · Rust and Cargo 1 cheatsheet

Was this page helpful?