Crates.io | coutils |
lib.rs | coutils |
version | 2.0.0 |
source | src |
created_at | 2023-07-08 14:02:12.279977 |
updated_at | 2024-04-20 14:03:48.895339 |
description | A set of useful functions for Rust. |
homepage | https://github.com/angeldollface/coutils |
repository | https://github.com/angeldollface/coutils |
max_upload_size | |
id | 911486 |
size | 30,677 |
A set of useful functions for Rust.
I found myself re-writing the same functions a million times in different Rust projects. Because this is not efficient and is quite time-consuming, I thought I'd unify these common functions into a library. This is that library. Coutils is short for Common Utilities. Enjoy.
To use Coutils in your Rust project, add this line to your project's Cargo.toml
's [dependencies]
section:
coutils = "2.0.0"
Optionally, you can decide which features you would like to enable. Coutils offers the following features:
filesystem
: A feature to work with files and directories.networking
: A feature to clone Git repositories.time
: A feature to get current time information.To enable one or all of the available features, add this line to your Rust project's Cargo.toml
:
coutils = { version = "2.0.0", features = [ "feature_name" ] }
I added features because some implementations of Lib C do not play nice with anything to do with networking, like MUSL. Additionally, using Coutils in WASM projects is easier if certain features are enabled or disabled.
To check out this crate's API, please visit the documentation page.
has_item
method.src/test_file.txt
to dest/test_file.txt
.Result
enum.TimeNow
structure.