-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
81 lines (59 loc) · 1.94 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[package]
name = "bulk_examples_generator"
version = "0.1.0"
authors = ["siberianbluerobin <n1xef5em4bp4@opayq.com>"]
edition = "2018"
description = "Create dozens/hundreds/thousands/millions of random examples based on a pest grammar (PEG). It can be used for generate string/structured data for training models in AI, or like a grammar fuzzer for find bugs."
readme = "README.md"
repository = "https://github.com/siberianbluerobin/bulk-examples-generator"
license = "MIT"
keywords = ["generator", "grammar", "random", "data", "fuzzer"]
categories = ["command-line-utilities", "parsing", "parser-implementations", "template-engine"]
[lib]
bench = false
[[bin]]
name = "bulk_examples_generator"
path = "src/main.rs"
bench = false
[dependencies]
# Minimum version supported according to
# 1.41
# rand: 1.36.0
# structopt: 1.36
# regex: 1.41.0
# Random stuff
rand = "0.8"
# Meta crate of pest for access to grammar rules and their AST
pest_meta = "2.1"
pest_vm = "2.1"
# Crate used to support the difference or negation operator ("!") in the generation of examples from grammar
pest = "2.1"
# pest_derive = "2.1"
# Parallelization
rayon = "1.0"
# TODO: This funcionality is not tested correctly
# Detect when the stack is near to being full by recursion
stacker = "0.1"
# Crate used for preprocessing the grammars replacing the builtin rules for their equivalents
aho-corasick = "0.7"
# Support crates for regex expressions, used for replace special rules added to the PEST grammar
regex = "1.5"
# TODO: This crate is not used at the moment
# Logging crate
# env_logger = "0.6"
#---------- Crates for binary
# Command line support
structopt = "^0.3.12"
# Progress bar
indicatif = "0.16"
# Load TOML config for generator
config = "^0.11"
# Used for loading config in a struct with config crate
serde_derive = "^1.0.8"
serde = "^1.0.8"
#----------- Benchmarks and other things
[dev-dependencies]
criterion = "^0.3.1"
[[bench]]
name = "basic_generation"
harness = false