Skip to content

Commit

Permalink
Added comment support. Profiled a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
datawater committed Jun 15, 2024
1 parent fce7864 commit d024deb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
target/
data/*.zip
data/*.pgn
mkramdisk
mkramdisk
*.data
*.perf
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"
license = "GPL-3.0"

[dependencies]
# clap = { version = "4.5.7", features = ["derive"] }
clap = { version = "0.1.0", path = "clap-dynamic", package = "clap-dynamic" }
clap_complete = "4.5.5"
exec = "0.3.1"
Expand All @@ -30,6 +31,11 @@ codegen-units = 2048
inherits = "release"
strip = false

[profile.profile]
inherits = "release"
strip = false
debug = true

[profile.size]
inherits = "release"
opt-level = "s"
Expand Down
1 change: 0 additions & 1 deletion src/pgn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ fn parse_half_move_count<'a>(

pub fn parse_pgn(input_filename: &str) -> Result<Vec<PgnGame>, Box<dyn Error + '_>> {
// TODO(#7): Add variations support
// TODO(#8): Add comments support

let lines = utils::read_lines(input_filename)?;

Expand Down

0 comments on commit d024deb

Please sign in to comment.