docs.rs failed to build reusable-fmt-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
reusable-fmt-0.2.0
reusable-fmt
Reusable format strings for std::fmt macros
Initial Release
This crate provides compile-time defined format string support for std::fmt
macros like write!
, print!
, format!
, etc.
Installation
Cargo.toml
:
[]
= { = https://github.com/rupansh/reusable-fmt }
src.rs
:
use *;
Example Usage
use reusable_fmt:*;
// This defines your format strings
fmt_reuse!
Why
- Makes format strings less redundant
- No runtime overhead! everything is compile time.
- Dependency-free (unless you count build-dependencies)
Contribution
Feel free to request and implement features. I am not that good with macros so code improvements are welcome too!
Testing
Tests should be run on nightly
cargo +nightly test
Documentation
Documentation should be compiled on nightly
cargo +nightly doc