-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
116 lines (94 loc) · 2.15 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
115
116
[package]
name = "generative"
version = "0.1.0"
edition = "2021"
[lib]
path = "generative/lib.rs"
[[bin]]
name = "dla"
path = "tools/dla.rs"
[[bin]]
name = "point-cloud"
path = "tools/point-cloud.rs"
[[bin]]
name = "transform"
path = "tools/transform.rs"
[[bin]]
name = "triangulate"
path = "tools/triangulate.rs"
[[bin]]
name = "urquhart"
path = "tools/urquhart.rs"
[[bin]]
name = "template"
path = "tools/template.rs"
[[bin]]
name = "wkt2svg"
path = "tools/wkt2svg.rs"
[[bin]]
name = "traverse"
path = "tools/traverse.rs"
[[bin]]
name = "smooth"
path = "tools/smooth.rs"
[[bin]]
name = "grid"
path = "tools/grid.rs"
[[bin]]
name = "bitwise"
path = "tools/bitwise.rs"
[[bin]]
name = "bundle"
path = "tools/bundle.rs"
[[bin]]
name = "pack"
path = "tools/pack.rs"
[[bin]]
name = "streamline"
path = "tools/streamline.rs"
[[bin]]
name = "snap"
path = "tools/snap.rs"
[[bin]]
name = "geom2graph"
path = "tools/geom2graph.rs"
required-features = ["cxx-bindings"]
[dependencies]
clap = {version="4.0", features=["derive"]}
cxx = {version = "1.0", optional=true}
delaunator = "1.0"
hex = "0.4"
itertools = "0.14"
geo = "0.29"
kdtree = "0.7"
log = "0.4"
noise = "0.9"
petgraph = "0.7"
rand = "0.8"
rand_distr = "0.4"
rectangle-pack = "0.4"
rhai = {version="1.13", features=["only_i64", "no_index", "no_object", "no_time", "no_function", "no_module", "no_custom_syntax"]}
stderrlog = "0.6"
svg = "0.18"
wkb = "0.7"
wkt = "0.12"
[build-dependencies]
cc = {version="*", features=["parallel"], optional=true}
cmake = {version="0.1", optional=true}
cxx-build = {version="1.0", optional=true}
fs_extra = {version="1.3", optional=true}
glob = {version="0.3", optional=true}
[dev-dependencies]
ctor = "0.2"
float-cmp = "0.10"
[features]
# Tests can dump WKT for ease of visualization
# cargo test --all-features $test_name -- --nocapture | ./tools/render.py
test-io = []
# Whether to also build the C++ libgenerative
cxx = ["dep:cmake", "dep:cc", "dep:fs_extra", "dep:glob"]
# Whether to also build the C++ libgenerative tests
cxx-tests = ["cxx"]
# Whether to build the Rust bindings for libgenerative (geom2graph)
cxx-bindings = ["cxx", "dep:cxx", "dep:cxx-build"]
default = ["cxx-bindings"]