49 releases (22 stable)

4.5.0 Sep 18, 2024
4.3.0 Jun 25, 2024
3.6.6 Apr 10, 2024
3.6.5 Feb 15, 2024
0.3.10 Jul 30, 2019

#33 in Build Utils

Download history 2026/week @ 2024-08-03 1827/week @ 2024-08-10 1611/week @ 2024-08-17 1552/week @ 2024-08-24 1642/week @ 2024-08-31 1457/week @ 2024-09-07 1943/week @ 2024-09-14 1999/week @ 2024-09-21 1727/week @ 2024-09-28 1409/week @ 2024-10-05 135/week @ 2024-10-12 42/week @ 2024-10-19 25/week @ 2024-10-26 86/week @ 2024-11-02 10/week @ 2024-11-09 13/week @ 2024-11-16

135 downloads per month
Used in 8 crates (7 directly)

Apache-2.0

140KB
4K SLoC

Autorelease

Conjure-Rust

CircleCI Bintray License

Conjure support for Rust.

conjure-rust

conjure-rust is an RFC 002-compliant CLI, which can be used via a build tool like gradle-conjure, or manually:

USAGE:
    conjure-rust generate [OPTIONS] <inputJson> <outputDirectory>

ARGS:
    <inputJson>          Path to a JSON-formatted Conjure IR file
    <outputDirectory>    Directory to place generated code

OPTIONS:
        --exhaustive                  Generate exhaustively matchable enums and unions
        --useStagedBuilders           Generate compile-time safe builders to ensure all required
                                      attributes are set
        --stripPrefix <prefix>        Strip a prefix from types's package paths
        --productName <name>          The name of the generated crate
        --productVersion <version>    The version of the generated crate
    -h, --help                        Print help information

conjure-codegen

Documentation

conjure-codegen is the library which turns a Conjure IR file into Rust code. It powers the conjure-rust CLI, but can also be used on its own in e.g. build scripts as an alternative approach. See its documentation for more details, as well as examples of generated code.

conjure-error

Documentation

conjure-error is the runtime support library that the errors generated by conjure-codegen depend on. It defines various standard error types and functionality to serialize and deserialize errors.

conjure-http

Documentation

conjure-http is the runtime support library that the service clients and resources generated by conjure-codegen depend on. It defines interfaces used by the underlying client and server implementations.

conjure-object

Documentation

conjure-object is the runtime support library that the objects generated by conjure-codegen depend on. It reexports the various third party types that correspond to Conjure primitives.

conjure-serde

Documentation

conjure-serde provides wrapper types for serde Serializers and Deserializers which adjust behavior to match Conjure's expectations around binary data, non-finite floating point values, and unknown fields.

Dependencies

~5–12MB
~131K SLoC