crux_platform (deprecated)
⚠️ This crate is deprecated and will no longer be maintained.
The crux_platform capability was provided as a convenience for querying the current platform
(iOS, Android, Web, etc.) from the shell. In practice it never did much, and with the
Command API it is
straightforward to create your own platform capability tailored to your app's needs.
Migration
Copy the handful of types below into your own project and adjust them however you like.
The shell-side implementation (responding to PlatformRequest with a PlatformResponse)
remains exactly the same.
use ;
use Facet;
use ;
use PhantomData;
;
;
For more information on building custom capabilities, see Managed Effects in the Crux book.