#data-source #graphql #cloud #policy #query #graphql-schema #shisho

macro test-shisho-datasource

This is the utility for Shisho Cloud Policy SDK

4 releases

0.1.3 Nov 9, 2022
0.1.2 Nov 9, 2022
0.1.1 Nov 9, 2022
0.1.0 Nov 9, 2022

#972 in Procedural macros

Download history 1/week @ 2024-02-22 1/week @ 2024-02-29 2/week @ 2024-03-28 113/week @ 2024-04-04 10/week @ 2024-04-11

125 downloads per month

Apache-2.0 OR MIT

180KB
5K SLoC

The Derive Macro for Shisho Policy GraphQL Schema

This is a helper crate for Shisho Cloud workflows to write custom policies.

This is the utility for shisho-policy which is a derive macro to allow referring a graphql query as Rust structs.

Example usage

use shisho_datasource::*;

...

#[allow(dead_code)]
#[derive(InputQuery)]
#[graphql(
    query_path = "src/policies/organization/org_owners/query.graphql",
    derives = "Debug, PartialEq"
)]
pub struct Input;

...

Reference

Dependencies

~1.8–2.7MB
~59K SLoC