No description
- Rust 59.1%
- Shell 21.9%
- HTML 17.6%
- Makefile 1.4%
|
Some checks failed
Build Linux Release / build-linux (linux-amd64, false, x86_64-unknown-linux-musl) (push) Failing after 26s
Build Linux Release / build-linux (linux-arm64, true, aarch64-unknown-linux-gnu) (push) Failing after 30s
Build and Test / build-test (push) Failing after 8s
Build macOS Release / build-macos (macos-amd64, x86_64-apple-darwin) (push) Has been cancelled
Build macOS Release / build-macos (macos-arm64, aarch64-apple-darwin) (push) Has been cancelled
|
||
|---|---|---|
| .github/workflows | ||
| crates/my_client | ||
| schemas | ||
| scripts | ||
| src | ||
| static | ||
| templates | ||
| tests | ||
| .gitignore | ||
| buildenv.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Makefile | ||
| openrpc.json | ||
| README.md | ||
my_server
A HeroLib-based HTTP server built with Rust 1.92+ and Edition 2024.
Quick Start
Prerequisites
- Rust 1.92+ (https://rustup.rs)
- Git
- Make
Build & Run
# Development mode (debug)
make rundev
# Release mode
make run
Test the server:
curl http://localhost:2918/health | jq
Available Make Targets
make build- Build release binarymake rundev- Run in development mode (with debug logs)make run- Run release binarymake test- Run all testsmake clean- Clean build artifactsmake check- Run cargo checkmake fmt- Format code with rustfmtmake clippy- Run clippy linter
Project Structure
.
├── Cargo.toml # Dependencies (HeroLib packages)
├── buildenv.sh # Build environment configuration
├── Makefile # Build system targets
├── src/
│ └── main.rs # Server entry point
├── schemas/
│ └── models.oschema # OSchema type definitions
└── .github/
└── workflows/
└── ci.yml # GitHub Actions CI/CD
Dependencies
This project uses HeroLib core packages:
- herolib-core - Core types and utilities
- herolib-web - Axum HTTP framework integration
- herolib-osis - Object storage with SmartID
- herolib-os - OS abstractions