generated from erix/meta
lib-service is the service-discovery client helper crate for EriX.
- Rust 100%
| .github | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| ARCHITECTURE.md | ||
| Cargo.toml | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| rustfmt.toml | ||
| SECURITY.md | ||
lib-service
lib-service is the service-discovery client helper crate for EriX.
It provides a minimal no_std API for services to talk to named using stable
lib-ipc wire formats.
Status
- Service discovery is fully implemented.
- Used by
memd,vspaced,pagerd, andprocdfor service discovery. - Unit tests cover name validation and register/lookup helper roundtrips.
Scope
Implemented:
- Canonical service name type:
ServiceNameV1 - Canonical core service names:
SERVICE_NAME_NAMEDSERVICE_NAME_MEMDSERVICE_NAME_VSPACEDSERVICE_NAME_PAGERDSERVICE_NAME_PROCD
- Discovery helpers:
register_self(...)lookup(...)
- Transport callback abstraction for syscall-layer decoupling.
Out of scope:
- Transport ownership or endpoint lifecycle
- Retry policy orchestration at service level
- Dynamic registry policy (owned by
named/rootdpolicy)
Dependency policy
- External crates: none
- Internal dependency:
lib-ipc
Build and test
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all-targets --all-features
Integration contract
lib-service is an additive helper over existing v1 IPC contracts.
It does not define new authority rules and does not bypass named policy.
Documentation
Service Discovery reference: docs/phases/1.md.