Skip to content

Commit cf2bd0c

Browse files
Make Cargo workspace instead of nested crate
Update some docs and cargo.toml
1 parent d454de7 commit cf2bd0c

24 files changed

+48
-26
lines changed

Cargo.toml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
[package]
2-
name = "corewa_rs"
3-
version = "0.1.0"
4-
authors = ["Ian Chamberlain <[email protected]>"]
5-
edition = "2018"
1+
[workspace]
62

7-
[dependencies]
8-
itertools = "0.8.0"
9-
lazy_static = "1.2.0"
10-
pest_derive = "2.1.0"
11-
pest = "2.1.0"
12-
structopt = "0.3.5"
13-
14-
[dev-dependencies]
15-
assert_cmd = "0.11.1"
16-
assert_fs = "0.13.1"
17-
predicates = "1.0.2"
18-
testutils = { path = "testutils" }
3+
members = [
4+
"corewa_rs",
5+
"testutils",
6+
]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
A Rust implementation of [Core Wars](http://www.koth.org/index.html).
33

44
The implementation is based on [this introductory guide](http://vyznev.net/corewar/guide.html) to Redcode, as well as the [pMARS '94 reference](http://www.koth.org/info/pmars-redcode-94.txt) and an [annotated version](http://corewar.co.uk/standards/icws94.txt) of the ICWS '94 draft.
5+
6+
## Crates
7+
* `corewa_rs` - the main implementation
8+
* `testutils` - some utilities for working with load files and testing complex predicates

corewa_rs/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "corewa_rs"
3+
version = "0.1.0"
4+
authors = ["Ian Chamberlain <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
itertools = "0.8.0"
9+
lazy_static = "1.2.0"
10+
pest_derive = "2.1.0"
11+
pest = "2.1.0"
12+
structopt = "0.3.5"
13+
14+
[dev-dependencies]
15+
assert_cmd = "0.11.1"
16+
assert_fs = "0.13.1"
17+
predicates = "1.0.2"
18+
testutils = { path = "../testutils" }
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.

0 commit comments

Comments
 (0)