-
Notifications
You must be signed in to change notification settings - Fork 20
/
Cargo.toml
114 lines (104 loc) · 3.26 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[package]
name = "dbgen"
version = "0.8.0"
authors = ["kennytm <kennytm@gmail.com>"]
edition = "2021"
license = "MIT"
description = "Generate random test cases for databases"
repository = "https://github.com/kennytm/dbgen"
exclude = ["fuzz.sh", "release/*"]
readme = "README.md"
keywords = ["cli", "generator", "database", "fake"]
categories = ["command-line-utilities", "simulation"]
rust-version = "1.71.0"
[workspace]
members = ["dbgen-playground", "dbdbgen"]
[workspace.dependencies]
chrono = { version = "0.4.26", default-features = false, features = ["std", "serde", "clock"] }
clap = "4.5"
data-encoding = "2.4"
parse-size = { version = "1.0", features = ["std"] }
rand = { version = "0.8.5", default-features = false, features = ["getrandom"]}
rand_hc = "0.3"
serde = { version = "1.0", features = ["derive"]}
serde_json = "1.0"
thiserror = "1.0"
[dependencies]
clap = { workspace = true, optional = true, features = ["derive"] }
pest = "2.7"
pest_derive = "2.7"
thiserror = { workspace = true }
rand = { workspace = true }
data-encoding = { workspace = true }
# syn is currently duplicated because of this, wait until next release that includes https://github.com/ia0/data-encoding/pull/108
data-encoding-macro = "0.1"
regex-syntax = "0.8"
# the progress bar will prevent dbgen from finishing
# forcing a git dependency until https://github.com/a8m/pb/pull/120 is released
pbr = { version = "1.1", optional = true, git = "https://github.com/a8m/pb.git", rev = "d60b964be6a234c933fdf95d7b7851f383e21206" }
num-traits = "0.2"
rayon = { version = "1.7", optional = true }
zipf = "7.0.1"
chrono = { workspace = true }
tzfile = "0.1"
ryu = "1.0"
serde = { workspace = true }
muldiv = { version = "1.0", optional = true }
rand_distr = { version = "0.4", default-features = false, features = ["alloc"] }
rand_regex = "0.17"
rand_pcg = { version = "0.3", optional = true }
rand_isaac = { version = "0.3", optional = true }
rand_chacha = { version = "0.3", optional = true }
rand_hc = { workspace = true }
rand_xorshift = { version = "0.3", optional = true }
shlex = { version = "1.1", optional = true }
flate2 = { version = "1.0", optional = true }
xz2 = { version = "0.1", optional = true }
zstd = { version = "0.13", default-features = false, optional = true }
smallvec = { version = "1.13", default-features = false, features = ["union"] }
memchr = "2.5"
numcmp = "0.1"
parse-size = { workspace = true, optional = true }
fastrand = { version = "2.1", default-features = false }
auto_enums = "0.8"
[dev-dependencies]
regex = { version = "1.9", default-features = false }
tempfile = "3.7"
serde_json = { workspace = true }
diff = "0.1"
criterion = "0.5"
[[bench]]
name = "benchmark"
harness = false
[build-dependencies]
vergen = { version = "8.2", default-features = false, features = ["git", "gitcl", "cargo"] }
[features]
default = ["cli"]
cli = [
"dep:clap",
"dep:pbr",
"dep:rayon",
"serde/derive",
"dep:muldiv",
"dep:rand_pcg",
"dep:rand_isaac",
"dep:rand_chacha",
"dep:rand_xorshift",
"dep:shlex",
"dep:flate2",
"dep:xz2",
"dep:zstd",
"dep:parse-size",
]
nightly = ["rand/nightly"]
[[bin]]
name = "dbgen"
required-features = ["cli"]
[[bin]]
name = "dbschemagen"
required-features = ["cli"]
[profile.release]
panic = "abort"
lto = true
codegen-units = 1
debug = 2