itying-add-lib 0.1.1

A library for adding numbers
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 238.9 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • itying8888

itying-add-lib - 简单的加法库

简介

itying-add-lib 是一个简单的 Rust 库,提供基本的加法运算功能。

安装

在您的 Cargo.toml 文件中添加以下依赖项:

[dependencies]

itying-add-lib = "0.1.0"

使用方法

use itying_add_lib::add;

fn main() {
    let sum = add(2, 3);
    println!("2 + 3 = {}", sum);  // 输出: 2 + 3 = 5
}

功能

  • 提供 add 函数,用于计算两个 u64 类型数字的和

测试

库中包含单元测试,可以通过以下命令运行:

cargo test

许可证

本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。

贡献

欢迎提交问题和拉取请求!