Crates.io | curso_09_libs |
lib.rs | curso_09_libs |
version | 0.1.1 |
source | src |
created_at | 2024-04-20 20:53:50.37785 |
updated_at | 2024-04-20 21:00:30.743404 |
description | Teste de biblioteca |
homepage | http://github.com/EduardoPagotto |
repository | http://github.com/EduardoPagotto/curso_09_libs.git |
max_upload_size | |
id | 1214868 |
size | 2,498 |
Autenticar no crates via github site: https://crates.io Em acount settings criar novo token copiar a chave
Efetuar o login
cargo login
# colar a chava gerada no site
Criar projeto de biblioteca
mkdir curso_09_libs
cd curso_09_libs
cargo init --lib
Editar arquivo Cargo.toml conforme abaixo
[package]
name = "curso_09_libs"
version = "0.1.1"
edition = "2021"
authors = ["EuardoPagotto <edupagotto@gmail.com>"]
description = "Teste de biblioteca"
homepage = "http://github.com/EduardoPagotto"
repository = "http://github.com/EduardoPagotto/curso_09_libs.git"
documentation = "http://github.com/EduardoPagotto/curso_09_libs/README.md"
license = "MIT"
keywords = ["bibliotecas","funcoes"]
categories = ["functions"]
[dependencies]
Crie o repositorio git
git add .
git commit -m "inicial"
cargo publish