docs.rs failed to build neocrates-0.1.43
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:
neocrates-0.1.42
Neocrates
A comprehensive Rust utility library providing modular access to web development, AWS integrations, database operations, Redis caching, cryptography, authentication, and more. Neocrates acts as a facade crate that re-exports functionality from well-maintained ecosystem crates — gated behind feature flags so you only pay for what you use.
中文文档: README.zh-CN.md
✨ Features
| Feature | What it gives you |
|---|---|
web |
Axum + Tower + Hyper, reqwest HTTP client, URL helpers, middleware & response types |
aws |
Full AWS suite (S3 + STS for AWS / Aliyun / Tencent Cloud) |
awss3 |
S3 client only |
awssts |
STS clients only (Aliyun & Tencent Cloud) |
diesel |
Diesel ORM + deadpool-diesel connection pooling (PostgreSQL) |
redis |
bb8-redis connection pool + Moka in-process cache |
crypto |
Argon2 password hashing, HMAC, SHA-2, Ring low-level crypto |
sms |
SMS helpers (Aliyun & Tencent Cloud) |
captcha |
CAPTCHA service |
auth |
JWT and session auth helpers |
logger |
Structured tracing-subscriber logger |
full |
All of the above |
MSRV: Rust 1.84+ (edition 2024)
📦 Installation
[]
# All features — great for getting started
= { = "0.1", = ["full"] }
# Selective — recommended for production (smaller binaries)
= { = "0.1", = false, = ["web", "redis", "logger"] }
🚀 Quick Start
Logger
async
S3 Client
Aliyun / Tencent STS
Redis Cache
Diesel (PostgreSQL)
Axum Web App
⚙️ Environment Variables
| Variable | Module | Description |
|---|---|---|
DATABASE_URL |
diesel |
PostgreSQL connection string |
DATABASE_POOL_SIZE |
diesel |
Connection pool size |
REDIS_URL |
redis |
Redis connection URL |
REDIS_POOL_SIZE |
redis |
Redis pool size |
RUST_LOG |
logger |
Log level filter (default: info) |
AWS_ACCESS_KEY_ID |
awss3 |
AWS / S3-compatible access key |
AWS_SECRET_ACCESS_KEY |
awss3 |
AWS / S3-compatible secret key |
🛠️ Development
Run make help to see all available targets.
🤝 Contributing
- New functionality should be behind a feature flag.
- Add tests for new features (
#[tokio::test]for async). - Run
make lintandmake fmtbefore opening a PR. - Update this README and
AGENTS.mdwhen adding modules.
&&
🛡️ Security
- Never hardcode credentials — use environment variables or a secrets manager.
- Always validate and sanitize user input before processing.
- Use Argon2 (via the
cryptofeature) for password hashing; never MD5 or SHA-1. - Report security vulnerabilities directly to the maintainers.
📚 Resources
- API Docs: docs.rs/neocrates
- crates.io: crates.io/crates/neocrates
- Source: github.com/ooiai/neocrates
- Usage Examples: USAGE_EXAMPLES.md
📄 License
MIT License — Copyright © 2026 ooiai
See LICENSE for the full text.