Cranpose Services
Multiplatform service abstractions for Cranpose applications.
When to Use
This crate provides cross-platform interfaces and default implementations for:
- HTTP text fetching
- Opening external URIs
Applications can consume these services through CompositionLocals and override them in tests.
Architecture
- Interfaces:
HttpClient,UriHandler - CompositionLocals:
local_http_client(),local_uri_handler() - Default implementations:
- Desktop:
reqwestfor HTTP andopenfor URIs - Web: browser
fetchandwindow.open - Android:
reqwestfor HTTP andwebbrowser(ACTION_VIEW) for URIs
- Desktop: