This repository was archived by the owner on Nov 9, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ stopwatch = "0.0.6"
15
15
lto = true
16
16
17
17
[features ]
18
- default = [" server " , " color" ]
18
+ default = [" color" ]
19
19
dump_data = []
20
- wait_on_exit = []
21
- server = []
22
20
color = []
Original file line number Diff line number Diff line change 2
2
3
3
Project from Software Pattern class.
4
4
5
- ## Running
5
+ ## Running server
6
6
7
7
(Make sure you have [ Rust] ( https://www.rust-lang.org/downloads.html ) installed)
8
8
9
9
```
10
- $ cargo run --release SyllableDB-V1.dat
10
+ $ cargo run --bin thaiengine -- release SyllableDB-V1.dat
11
11
```
12
12
13
13
(Syllable database can be obtained from the class Facebook group)
14
14
15
15
Optional features:
16
16
17
- - ` assertion ` : Show time used to perform certain operations
18
17
- ` dump_data ` : Print data while loading/searching
19
- - ` wait_on_exit ` : Don't exit, instead wait for long time
20
- - ` interactive ` : Interactive build: ask for file to read, ask for search queries
18
+ - ` color ` (default): Use colored log. Disable if your platform have problem rendering it
19
+ - Set ` RUST_LOG=debug ` to view more logs
21
20
22
21
To enable features:
23
22
24
23
```
25
- $ cargo run --features="assertion dump_data" SyllableDB-V1.dat
24
+ $ cargo run --features="dump_data" --bin thaiengine --release SyllableDB-V1.dat
25
+ ```
26
+
27
+ ** Note** : Running without ` --release ` will use another code path with assertions, resulting in slower program.
28
+
29
+ ## Running client
30
+
31
+ ```
32
+ $ cargo run --bin client --release
26
33
```
You can’t perform that action at this time.
0 commit comments