All Projects → Xudong-Huang → Generator Rs

Xudong-Huang / Generator Rs

Licence: other
rust stackful generator library

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Generator Rs

Chyle
Changelog generator : use a git repository and various data sources and publish the result on external services
Stars: ✭ 137 (-6.16%)
Mutual labels:  generator
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (-3.42%)
Mutual labels:  generator
App Privacy Policy Generator
A simple web app to generate a generic privacy policy for your Android/iOS apps
Stars: ✭ 2,278 (+1460.27%)
Mutual labels:  generator
Generator Jekyll Starter Kit
🚀 Jekyll Progressive Web App Generator.
Stars: ✭ 139 (-4.79%)
Mutual labels:  generator
Nuxt Generate Cluster
Multi-threaded generator command for nuxt.js
Stars: ✭ 140 (-4.11%)
Mutual labels:  generator
Gh Actions Yaml Generator
Ghygen is a GitHub Actions configurator for your Laravel Application.
Stars: ✭ 142 (-2.74%)
Mutual labels:  generator
Gk
Go-Kit Genetator
Stars: ✭ 136 (-6.85%)
Mutual labels:  generator
Jhipster Dotnetcore
JHipster.NET blueprint
Stars: ✭ 144 (-1.37%)
Mutual labels:  generator
Gofakeit
Random fake data generator written in go
Stars: ✭ 2,193 (+1402.05%)
Mutual labels:  generator
Genmon
Generac Generator Monitoring using a Raspberry Pi and WiFi
Stars: ✭ 143 (-2.05%)
Mutual labels:  generator
Umldoclet
Automatically generate PlantUML diagrams in javadoc
Stars: ✭ 138 (-5.48%)
Mutual labels:  generator
Github Contribution Stats
Dynamically generated Github Contribution Stats. 📈 📆
Stars: ✭ 139 (-4.79%)
Mutual labels:  generator
Gf Cli
GoFrame Command Line Interface, which is your helpmate for building GoFrame application with convenience.
Stars: ✭ 143 (-2.05%)
Mutual labels:  generator
Automatic Gatsbyjs App Landing Page
Automatic GatsbyJS App Landing Page - Automatically generate iOS app landing page using GatsbyJS
Stars: ✭ 137 (-6.16%)
Mutual labels:  generator
Swiftpoet
Kotlin and Java API for generating .swift source files.
Stars: ✭ 144 (-1.37%)
Mutual labels:  generator
Auto Youtube Subscription Playlist 2
Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative).
Stars: ✭ 136 (-6.85%)
Mutual labels:  generator
Puppet Retrospec
The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
Stars: ✭ 141 (-3.42%)
Mutual labels:  generator
Json2builtvalue
Json to Dart built_value classes generator
Stars: ✭ 145 (-0.68%)
Mutual labels:  generator
Flowchart Fun
Easily generate flowcharts and diagrams from text ⿻
Stars: ✭ 2,311 (+1482.88%)
Mutual labels:  generator
Tropical Fish
Pragmatic 风格的 Java EE 后端开发脚手架,开箱即用。基于 SpringBoot,技术选型采用主流的框架(Mybatis-Plus,Redisson,Xxl-job,Swagger)。项目特点:自定义查询语法, 可以自由组装查询条件查询数据,配合代码生成模块,提高研发效率;自定义 service 方法级别的文档生成规则,在业务方法增加必要的注解,可生成方法调用树,快速把握复杂代码业务逻辑。
Stars: ✭ 142 (-2.74%)
Mutual labels:  generator

Build Status Current Crates.io Version Document

Generator-rs

rust stackfull generator library

[dependencies]
generator = "0.6"

Usage

#[macro_use]
extern crate generator;
use generator::Gn;

fn main() {
    let g = Gn::new_scoped(|mut s| {
        let (mut a, mut b) = (0, 1);
        while b < 200 {
            std::mem::swap(&mut a, &mut b);
            b = a + b;
            s.yield_(b);
        }
        done!();
    });

    for i in g {
        println!("{}", i);
    }
}

Output

1
2
3
5
8
13
21
34
55
89
144
233

Goals

  • [x] basic send/yield with message support
  • [x] generator cancel support
  • [x] yield_from support
  • [x] panic inside generator support
  • [x] stack size tune support
  • [x] scoped static type support
  • [x] basic coroutine interface support
  • [x] stable rust support

based on this basic library

  • we can easily port python library based on generator into rust
  • coroutine framework running on multi thread

Notices

  • This crate supports below platforms, welcome to contribute with other arch and platforms

    • x86_64 Linux
    • x86_64 MacOs
    • x86_64 Windows

License

This project is licensed under either of the following, at your option:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].