curso_09_libs 0.1.1

Teste de biblioteca
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 2.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Documentation
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • EduardoPagotto

Bibliotecas

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