@undergraph-dev/rust-client
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Rust Client for WunderGraph

This package implements a code generator that produces a Rust client library to communicate with your WunderGraph application.

To enable it, add its generator to your WunderGraph application.

import { rustClient } from '@wundergraph/rust-client';
...

configureWunderGraphApplication({
    ...
    generate: {
        codeGenerators: [
            ...
            {
                templates: rustClient(),
                path: '../rust/client',
            },
	],
    },
    ...
});

This will generate a Rust package at $WUNDERGRAPH_DIR/../rust/client the next time you run wunderctl generate.

Optional configuration

The Rust client generator supports the following configuration options:

  • packageName: Package name for the generated client package
  • packageVersion: Package version for the generated client package

/@undergraph-dev/rust-client/

    Package Sidebar

    Install

    npm i @undergraph-dev/rust-client

    Weekly Downloads

    3

    Version

    0.4.0

    License

    Apache-2.0

    Unpacked Size

    242 kB

    Total Files

    7

    Last publish

    Collaborators

    • supaspoida