#gear #interval #tree #no-std

no-std numerated

A library for working with intervals and sets of numerated values

11 stable releases

new 1.7.0 Nov 26, 2024
1.6.2 Oct 7, 2024
1.6.1 Sep 28, 2024
1.5.0 Aug 12, 2024
1.0.3 Nov 30, 2023

#48 in #gear

Download history 630/week @ 2024-08-09 370/week @ 2024-08-16 318/week @ 2024-08-23 317/week @ 2024-08-30 226/week @ 2024-09-06 304/week @ 2024-09-13 762/week @ 2024-09-20 744/week @ 2024-09-27 695/week @ 2024-10-04 570/week @ 2024-10-11 659/week @ 2024-10-18 259/week @ 2024-10-25 545/week @ 2024-11-01 226/week @ 2024-11-08 275/week @ 2024-11-15 576/week @ 2024-11-22

1,656 downloads per month
Used in 22 crates (2 directly)

GPL-3.0 license

77KB
1.5K SLoC

Gear

Gear Protocol is a Substrate-based platform for developers, enabling anyone to spin up a dApp in just a few minutes.

CI GitHubStars Discord Twitter License

Hit the button to keep up with the daily protocol development progress!

Overview

Gear Protocol provides a developer-friendly programming platform for decentralized applications, along with custom runtime technology that can be used to deploy Layer-1 networks for running applications in a decentralized manner. The vision for Gear is to empower developers to create and deploy next-generation Web3.0 applications in the easiest and most efficient way possible.

🔥 Key Features

  • Unique 👑 : The main idea underpinning the Gear Protocol is the Actor model for message communications - secure, effective, clear.
  • Unique 👑 : Parallelizable architecture ensures even greater speed.
  • Unique 👑 : Continued messaging automation through delayed messages enables truly on-chain dApps.
  • Unique 👑 : Built-in Actors to provide programs with enhanced access to pallets and to offload high-load computations off-chain.
  • Unique 👑 : Create a dApp in minutes using Gear Protocol's libraries.
  • Programs run in a Wasm VM, enabling near-native code execution speed.
  • Based on Substrate, Gear Protocol ensures fork-less upgrades and compatibility with other blockchains.

Capabilities

  • Gear Protocol provides dApp developers with a very minimal, intuitive, and sufficient API for writing custom-logic programs in Rust and running them on Gear-powered networks, such as the Vara Network.
  • It provides a technological foundation for constructing highly scalable and rapid decentralized Layer-1 networks.
  • Reduces the computational burden on blockchains by offloading highly intensive calculations using a Vara node with WAVM, and then proving the correctness of these calculations on any blockchain.
  • A Vara node can be used as a standalone instance running microservices, middleware, open API, and more.

For more details refer to the Gear Whitepaper.

Refer to the Technical Paper for some insights about how it works internally.

Getting Started

  1. 📖 Visit Gear Wiki to get all the details about how to start implementing your own blockchain application.

    1. Follow the instructions from "Getting started in 5 minutes" to compile your first Rust test program to Wasm.
    2. Upload and run the program on the Vara Network Testnet via Gear Idea, send a message to a program and read the program's state.
  2. 📜 Write your own program or take one from the comprehensive examples library as a basis for a convenient and swift onboarding process.

    1. Explore dApp examples in action and gain a deeper understanding of their functionalities. Write your own program or use one from the available templates. Adapt a template according to your business needs.
    2. Test your program off-chain and on-chain using a local node.
    3. Then upload it via Gear Idea to the Vara Network.
  3. 🔬 Dive into the documentation on Gear Protocol crates at сrates.io. Particular attention should be paid to - sails_rs, gstd, gcore, gtest, gclient, gsdk. More details can be found in the Documentation section for each crate.

  4. 📱 Implement a frontend application that interacts with your program using the JS API. React application examples are available here.

Run Vara Node

Get the binaries

To build Vara node binaries from source follow a step by step instructions provided in Node README.

Alternatively, you can download pre-built packages for your OS/architecture:

Run Vara Dev network locally

Running the following command will start a single-node Vara Dev net with two users - Alice and Bob:

gear --dev

Performance

Performance charts can be seen here: https://gear-tech.github.io/performance-charts.

Contribution

You can request a new feature by creating a new issue or discuss it with us on Discord. Here are some features in progress or planned: https://github.com/gear-tech/gear/issues

License

Gear Protocol is licensed under GPL v3.0 with a classpath linking exception.

twit github discord medium medium
About us Gear Wiki News Events Vara Network


lib.rs:

Crate for working with Numerated types and their sets: Interval and IntervalsTree.

Note

In case Numerated is implemented incorrectly for some type T, then this can cause incorrect behavior of IntervalsTree and Interval for T.

Dependencies

~1.9–3MB
~62K SLoC