Skip to content

takeweb/my_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my_library"

『バックエンドエンジニアを目指す人のためのRust』 第7章 自作ライブラリを公開できるようになろう[本棚ツール]

環境構築

cargo new --lib my_library

module構成

crate
└── library
    ├── bookモジュール
    │   └── Book構造体
    └── bookshelfモジュール
        └── Bookshelf構造体

ファイルを分割

mkdir src/library
touch src/library/mod.rs
touch src/library/book.rs
touch src/library/bookshelf.rs

GitHubに公開

echo "# my_library" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/takeweb/my_library.git
git push -u origin main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages