| Crates.io | daml-codegen |
| lib.rs | daml-codegen |
| version | 0.2.2 |
| created_at | 2022-03-01 09:29:48.922079+00 |
| updated_at | 2022-03-08 08:38:51.413143+00 |
| description | Daml GRPC Ledger API Code Generator |
| homepage | |
| repository | https://github.com/fujiapple852/rust-daml-bindings |
| max_upload_size | |
| id | 541428 |
| size | 98,863 |
A library and a tool for generating Rust types from daml code.
This crate provides:
daml-derive cratedaml_codegen function which is
designed to be used from build.rs filesThis crate should not be used directly when used as a library, instead you should depend on
the daml crate and enable the codegen feature:
[dependencies]
daml = { version = "0.2.2", features = [ "codegen" ] }
cargo install daml-codegen
USAGE:
daml-codegen [OPTIONS] <dar>
ARGS:
<dar> Sets the input Dar file to use
OPTIONS:
-c, --combine-modules Combine modules as a single file
-f, --module-filter <filter>... Sets the regex module filter to apply
-h, --help Print help information
-i, --render-intermediate Generate intermediate types
-o, --output-dir <output> Sets the output path
-v, --verbose Sets the level of verbosity
-V, --version Print version information
To generate Rust types from Daml dar MyModel.dar in single src file /tmp/my_model_0_1_0.rs:
daml-codegen MyModel.dar --combine-modules -o /tmp/MyModel.dar
daml-codegen is distributed under the terms of the Apache License (Version 2.0).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in time by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See LICENSE for details.
Copyright 2022