Crates.io | kxio |
lib.rs | kxio |
version | |
source | src |
created_at | 2024-04-08 17:14:22.866566 |
updated_at | 2024-12-12 17:19:19.132312 |
description | Provides injectable Filesystem and Network resources to make code more testable |
homepage | |
repository | https://git.kemitix.net/kemitix/kxio |
max_upload_size | |
id | 1200669 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
kxio
is a Rust library that provides injectable FileSystem
and Network
resources to enhance the testability of your code. By abstracting system-level
interactions, kxio
enables easier mocking and testing of code that relies on
file system and network operations.
The Filesystem module offers a clean abstraction over std::fs
, the standard
file system operations. For comprehensive documentation and usage examples,
please refer to https://docs.rs/kxio/latest/kxio/fs/.
.reader().bytes()
The Network module offers a testable interface over the reqwest
crate. For
comprehensive documentation and usage examples, please refer to
https://docs.rs/kxio/latest/kxio/net/
Add kxio
to your Cargo.toml
:
[dependencies]
kxio = "x.y.z"
See the example get.rs for an annotated example on how to use the kxio
library.
It covers both the net
and fs
modules.
Contributions are welcome! Please check our issue tracker for open tasks or submit your own ideas.
This project is licensed under the terms specified in the LICENSE
file in the
repository root.
For more information, bug reports, or feature requests, please visit our repository.