18 releases (9 stable)

new 7.22.7 Mar 26, 2025
5.0.1 Jan 13, 2025
2.1.3 Oct 8, 2024
0.4.1 Jul 3, 2024
0.1.6 Jul 7, 2023

#297 in Finance

Download history 6/week @ 2024-12-08 115/week @ 2025-01-12 15/week @ 2025-01-19 1/week @ 2025-02-02 53/week @ 2025-02-09 24/week @ 2025-02-16 10/week @ 2025-02-23 20/week @ 2025-03-02 665/week @ 2025-03-23

685 downloads per month
Used in architect-sdk

AGPL-3.0-only

230KB
6K SLoC

architect-api

GraphQL support via Juniper

Trivial types, and types with only one obvious schema, come with implementations of GraphQL traits for use with the juniper crate. These can be enabled using the juniper feature flag. In general, however, the user should write their own wrapper types for a bespoke GraphQL schema.

JSONSchema generation

We generate a metadata + JSONSchema representation of our gRPC APIs to assist in generating client SDKs.

This is accomplished via two modules:

  • schema/builder -- logic and types for generating schema definitions from tonic_build service definitions
  • schema -- a stub crate/phony target that uses the generated schema definitions to build a schema.json file

[!NOTE]
New gRPC stubs/services must be added to schema/build.rs to be included in the generated schema.json file.

The dependency graph induces a build order: schema/builder -> architect-api -> schema. This build order naturally regenerates the schema.json file whenever this crate changes.

Downstream SDKs:

Dependencies

~20–41MB
~695K SLoC