Code Monkey home page Code Monkey logo

rust-daml-bindings's Introduction

ci Documentation Crate maintenance-status

Rust Bindings for Daml

Unofficial Rust bindings and tools for Daml.

Crates

The project provides the following crates:

crate description
daml Daml prelude & common entry point
daml-grpc Daml Ledger GRPC API bindings
daml-json Daml Ledger JSON API bindings
daml-codegen Generate Rust GRPC API bindings from Daml
daml-derive Macros for generating Rust GRPC bindings from Daml
daml-macro Helper macros for working with Daml GRPC values
daml-util Utilities for working with Daml ledgers
daml-lf Library for working with Daml-LF archives
daml-bridge Daml JSON <> GRPC Ledger bridge

Usage

Applications should always depend on the daml crate directly and specify the appropriate features to enable the required functionality:

[dependencies]
daml = { version = "0.2.2", features = [ "full" ] }

See the documentation for the full set of feature flags available.

Example Applications

Several example applications are available in the examples directory showcasing various features of the library. Additionally, most crates provide comprehensive integration tests which demonstrate usage.

Minimum Supported Rust Version

The current MSRV is 1.59.0.

Supported Daml Version

This library has been tested against Daml-LF version 1.14 and Daml Connect SDK 1.18.1.

Changelog

Please see the CHANGELOG for a release history.

License

This library 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

rust-daml-bindings's People

Contributors

dependabot[bot] avatar fujiapple852 avatar stranger6667 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rust-daml-bindings's Issues

Add `doc_auto_cfg` feature

Add to lib.rs for all crates to enable showing the required features for every item in rustdoc:

#![cfg_attr(doc, feature(doc_auto_cfg))]

Custom derive for `ToStatic`

Ideally we can do:

#[derive(Debug, Serialize, Clone, ToStatic)]
pub struct DamlField<'a> {
    name: Cow<'a, str>,
    ty: DamlType<'a>,
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.