10 releases

0.1.9 Mar 24, 2024
0.1.7 Jan 11, 2024
0.1.6 Dec 3, 2023
0.1.5 Nov 29, 2023
0.1.0 Dec 15, 2022

#801 in WebAssembly

Download history 11/week @ 2024-01-05 6/week @ 2024-01-12 56/week @ 2024-01-19 22/week @ 2024-01-26 11/week @ 2024-02-02 13/week @ 2024-02-16 53/week @ 2024-02-23 17/week @ 2024-03-01 7/week @ 2024-03-08 2/week @ 2024-03-15 133/week @ 2024-03-22 24/week @ 2024-03-29 19/week @ 2024-04-05

178 downloads per month

Apache-2.0

250KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments TypeScript 337 SLoC // 0.1% comments Swift 35 SLoC // 0.1% comments Java 18 SLoC

Crux Platform capability

This crate contains the Platform capability, which can be used to ask the Shell what platform it is running on.

For an example of how to use the capability, see the integration test.

About Crux Capabilities

Crux capabilities teach Crux how to interact with the shell when performing side effects. They do the following:

  1. define a Request struct to instruct the Shell how to perform the side effect on behalf of the Core
  2. define a Response struct to hold the data returned by the Shell after the side effect has completed
  3. declare one or more convenience methods for invoking the Shell's capability, each of which creates a Command (describing the effect and its continuation) that Crux can "execute"

Note that because Swift has no namespacing, there is currently a requirement to ensure that Request and Response are unambiguously named (e.g. HttpRequest and HttpResponse).


lib.rs:

TODO mod docs

Dependencies

~3–4.5MB
~91K SLoC