Git Product home page Git Product logo

embed-td's Introduction

embedded-td

Embed tendermint into rust to use tendermint as a crate.

Usage

Add this line into Cargo.toml:

embedded-td = "0.1"

Special tendermint version

Default tendermint version is 0.34.

You can use feature to use different tendermint version.

embedded-td = { version = "0.1", features = ["td_ver_0_34"] }

Build from source

By deafult, this crate use precompile version on github. If you want to build from source, use use_source_code:

embedded-td = { version = "0.1", features = ["use_source_code"] }

This feature can work with version.

embedded-td = { version = "0.1", features = ["use_source_code", "td_ver_0_34"] }

Note: Build from source need go installed.

Building from source can also use non-goleveldb backends:

# Use cleveldb, please install `libleveldb`.
embedded-td = { version = "0.1", features = ["use_source_code", "backend_cleveldb"] }

# Use rocksdb, please install `librocksdb`.
embedded-td = { version = "0.1", features = ["use_source_code", "backend_rocksdb"] }

Custom upstream

If you fork tendermint, use environment EMBEDDED_TD_UPSTREAM_URL as custom upstream's url.

For example:

# source code url, format is .tar.gz
EMBEDDED_TD_UPSTREAM_URL = "http://example.com/tendermint"

Features

You can use these features:

  • Version of tendermint
    • td_ver_0_34(default) tendermint 0.34
    • td_ver_0_37 tendermint 0.37
    • td_ver_0_33 tendermint 0.37
  • Runtime of async
    • smol-backend(default).
    • tokio-backend
  • How to get tendermint?
    • use_source_code

Supported platfrom

  1. linux, amd64 [tested]
  2. linux, arm64 [tested]
  3. linux, armv6
  4. macos, amd64
  5. macos, arm64
  6. windows, amd64
  7. windows, arm64
  8. windows, armv6
  9. other target (only build from source)

1 ~ 8 can work with precompile binary. Beacuse origin tendermin repo only provide these release. If you want to running on other platform, please configure go cross compile.

Test platform

  1. linux, x86_64
  2. windows, x86_64
  3. windows, aarch64
  4. android(termux), aarch64

embed-td's People

Contributors

tiannian avatar

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.