Skip to content

Commit 8d1f580

Browse files
committed
move most crates to flat ./crates directory
1 parent f9c8bda commit 8d1f580

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+80
-102
lines changed

.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ fuzzer
66
fuzzer-data
77
./current.gam
88
./current.mov
9-
/booktool/zebra.err
10-
/booktool/zebra.log
11-
/practice/zebra.err
12-
/practice/zebra.log
9+
/crates/**/zebra.err
10+
/crates/**/zebra.log
1311
wasm-simple/pkg
1412
wasm-simple/node_modules
1513
run_dir

Cargo.toml

+2-22
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
11
[workspace]
22
members = [
3-
"engine",
4-
"booktool",
5-
"tune8db",
6-
"scrzebra",
7-
"practice",
8-
"enddev",
9-
"engine/bitboard",
10-
"engine/pcstat",
11-
"engine/epcstat",
12-
"engine/bitbcnt",
13-
"engine/patterns",
14-
"engine/thordb-types",
15-
"engine/my-random",
16-
"thor-opening-list",
17-
"libc-wrapper",
18-
"engine/engine-traits",
19-
"flate2-coeff-source",
20-
"legacy-zebra",
213
"tests",
22-
"engine/flip",
23-
"engine/coeff",
24-
"script",
25-
"webzebra/crate"
4+
"webzebra/crate",
5+
"crates/*"
266
]
277

288
[profile.release]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

booktool/Cargo.toml renamed to crates/booktool/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ name = "booktool"
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

1414
[dependencies]
15-
engine = { path= "./../engine" }
16-
engine-traits = { path= "./../engine/engine-traits" }
17-
legacy-zebra = { path= "./../legacy-zebra" }
15+
engine = { path= "../engine" }
16+
engine-traits = { path= "../engine-traits" }
17+
legacy-zebra = { path= "../legacy-zebra" }
1818
libc = "0.2"
19-
libc-wrapper = { path = "./../libc-wrapper"}
19+
libc-wrapper = { path = "../libc-wrapper" }
File renamed without changes.
File renamed without changes.

engine/coeff/Cargo.toml renamed to crates/coeff/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88
[lib]
99
name="coeff"
10-
path="getcoeff.rs"
10+
path= "getcoeff.rs"
1111
[dependencies]
12-
engine-traits = { path = "./../engine-traits" }
12+
engine-traits = { path = "../engine-traits" }
File renamed without changes.

enddev/Cargo.toml renamed to crates/enddev/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ edition = "2018"
88

99

1010
[dependencies]
11-
engine = { path= "./../engine" }
12-
flip = { path= "./../engine/flip" }
13-
legacy-zebra = { path= "./../legacy-zebra" }
11+
engine = { path= "../engine" }
12+
flip = { path= "../flip" }
13+
legacy-zebra = { path= "../legacy-zebra" }
1414
libc = "0.2"
15-
libc-wrapper = { path = "./../libc-wrapper"}
15+
libc-wrapper = { path = "../libc-wrapper" }
1616

1717
[[bin]]
1818
path = "src/enddev.rs"
File renamed without changes.
File renamed without changes.
File renamed without changes.

crates/engine/Cargo.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
name = "engine"
3+
version = "0.1.0"
4+
authors = ["panstromek"]
5+
edition = "2018"
6+
7+
[lib]
8+
name = "engine"
9+
path = "lib.rs"
10+
11+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
12+
13+
[dependencies]
14+
bitboard = { path = "../bitboard" }
15+
pcstat = { path = "../pcstat" }
16+
epcstat = { path = "../epcstat" }
17+
bitbcnt = { path = "../bitbcnt" }
18+
patterns = { path = "../patterns" }
19+
thordb-types = { path = "../thordb-types" }
20+
engine-traits = { path = "../engine-traits" }
21+
coeff = { path = "../coeff" }
22+
flip = { path = "../flip" }
23+
my-random = { path = "../my-random" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

flate2-coeff-source/Cargo.toml renamed to crates/flate2-coeff-source/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ path = "lib.rs"
1111

1212

1313
[dependencies]
14-
engine-traits = { path = "./../engine/engine-traits" }
14+
engine-traits = { path = "../engine-traits" }
1515
flate2 = "1.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

crates/legacy-zebra/Cargo.toml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[package]
2+
name = "legacy-zebra"
3+
version = "0.1.0"
4+
authors = ["panstromek <[email protected]>"]
5+
edition = "2018"
6+
publish = false
7+
autobins = false
8+
9+
[lib]
10+
name = "legacy_zebra"
11+
path = "lib.rs"
12+
crate-type = ["staticlib", "rlib"]
13+
14+
15+
[[bin]]
16+
path = "src/main.rs"
17+
name = "zebra"
18+
19+
[dependencies]
20+
engine = { path = "../engine" }
21+
thordb-types = { path = "../thordb-types" }
22+
flip = { path = "../flip" }
23+
libc-wrapper = { path = "../libc-wrapper" }
24+
engine-traits = { path = "../engine-traits" }
25+
thor-opening-list = { path = "../thor-opening-list" }
26+
flate2-coeff-source = { path = "../flate2-coeff-source" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

practice/Cargo.toml renamed to crates/practice/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ edition = "2018"
88

99

1010
[dependencies]
11-
engine = { path= "./../engine" }
12-
flip = { path= "./../engine/flip" }
13-
legacy-zebra = { path= "./../legacy-zebra" }
11+
engine = { path= "../engine" }
12+
flip = { path= "../flip" }
13+
legacy-zebra = { path= "../legacy-zebra" }
1414
libc = "0.2"
15-
libc-wrapper = { path = "./../libc-wrapper"}
15+
libc-wrapper = { path = "../libc-wrapper" }
1616

1717
[[bin]]
1818
path = "src/practice.rs"
File renamed without changes.
File renamed without changes.
File renamed without changes.

scrzebra/Cargo.toml renamed to crates/scrzebra/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
engine = { path= "./../engine" }
11-
legacy-zebra = { path= "./../legacy-zebra" }
10+
engine = { path= "../engine" }
11+
legacy-zebra = { path= "../legacy-zebra" }
1212
libc = "0.2"
13-
libc-wrapper = { path = "./../libc-wrapper"}
13+
libc-wrapper = { path = "../libc-wrapper" }
1414

1515
[[bin]]
1616
path = "src/scrzebra.rs"
File renamed without changes.

thor-opening-list/Cargo.toml renamed to crates/thor-opening-list/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ name = "thor_opening_list"
1010
path = "thor_opening_list.rs"
1111

1212
[dependencies]
13-
thordb-types = { path = "./../engine/thordb-types"}
13+
thordb-types = { path = "../thordb-types" }
File renamed without changes.

tune8db/Cargo.toml renamed to crates/tune8db/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ name = "tune8db"
1313
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1414

1515
[dependencies]
16-
libc-wrapper = { path = "./../libc-wrapper"}
16+
libc-wrapper = { path = "../libc-wrapper" }
File renamed without changes.

engine/Cargo.toml

-23
This file was deleted.

legacy-zebra/Cargo.toml

-26
This file was deleted.

tests/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ edition = "2018"
88

99

1010
[dependencies]
11-
flate2-coeff-source = { path = "./../flate2-coeff-source" }
12-
engine-traits = { path = "./../engine/engine-traits" }
11+
flate2-coeff-source = { path = "../crates/flate2-coeff-source" }
12+
engine-traits = { path = "../crates/engine-traits" }
1313
rand = "0.8.3"
1414
wait-timeout = "0.2.0"
1515
rayon = "1.5.0"

webzebra/crate/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ wasm-opt = false
3333
default = ["wee_alloc"]
3434

3535
[dependencies]
36-
engine = { path= "./../../engine" }
37-
flip = { path= "./../../engine/flip" }
38-
engine-traits = { path = "./../../engine/engine-traits" }
39-
flate2-coeff-source = { path = "./../../flate2-coeff-source" }
40-
thordb-types = { path = "../../engine/thordb-types" }
36+
engine = { path= "../../crates/engine" }
37+
flip = { path= "../../crates/flip" }
38+
engine-traits = { path = "../../crates/engine-traits" }
39+
flate2-coeff-source = { path = "../../crates/flate2-coeff-source" }
40+
thordb-types = { path = "../../crates/thordb-types" }
4141
console_error_panic_hook = "0.1.6"
4242

4343
# The `wasm-bindgen` crate provides the bare minimum functionality needed

0 commit comments

Comments
 (0)