Skip to content

Commit

Permalink
refactor: removed Cargo Workspace because it wasn't playing well with…
Browse files Browse the repository at this point in the history
… release-please

bench: 8515628
  • Loading branch information
dannyhammer committed Jan 2, 2025
1 parent 6dc3d86 commit a5b4a5a
Show file tree
Hide file tree
Showing 34 changed files with 56 additions and 93 deletions.
80 changes: 40 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
[workspace]
members = ["toad"]
resolver = "2"
name = "toad-chess"
[package]
name = "toad"
version = "2.0.0"
edition = "2021"
authors = ["Danny Hammer <[email protected]>"]
license = "MPL-2.0"
description = "A toy chess engine"
repository = "https://github.com/dannyhammer/toad"
homepage = "https://github.com/dannyhammer/toad"
keywords = ["chess", "chess-engine", "uci"]

[profile.release]
panic = 'abort'
strip = true
lto = true
codegen-units = 1
overflow-checks = true
[dependencies]
anyhow = "1.0.89"
arrayvec = "0.7.6"
clap = { version = "4.5.18", features = ["derive", "string"] }
thiserror = "2.0.7"
#uci-parser = { path = "../../uci-parser", features = ["parse-go-perft", "parse-position-kiwipete", "clamp-negatives", "err-on-unused-input"] }
uci-parser = { git = "https://github.com/dannyhammer/uci-parser.git", features = ["parse-go-perft", "parse-position-kiwipete", "clamp-negatives", "err-on-unused-input"] }
#uci-parser = { version = "0.2.0", features = ["parse-go-perft", "parse-position-kiwipete", "clamp-negatives", "err-on-unused-input"] }
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
# If on Windows, add the .exe extension to the executable and use PowerShell instead of `sed`
ifeq ($(OS),Windows_NT)
EXT := .exe
NAME := $(shell powershell -Command "(Get-Content toad/Cargo.toml | Select-String '^name =').Line -replace '.*= ', '' -replace '\"', ''")
VERSION := $(shell powershell -Command "(Get-Content toad/Cargo.toml | Select-String '^version =').Line -replace '.*= ', '' -replace '\"', ''")
NAME := $(shell powershell -Command "(Get-Content Cargo.toml | Select-String '^name =').Line -replace '.*= ', '' -replace '\"', ''")
VERSION := $(shell powershell -Command "(Get-Content Cargo.toml | Select-String '^version =').Line -replace '.*= ', '' -replace '\"', ''")
else
EXT :=
NAME := $(shell sed -n 's/^name = "\(.*\)"/\1/p' toad/Cargo.toml)
VERSION := $(shell sed -n 's/^version = "\(.*\)"/\1/p' toad/Cargo.toml)
NAME := $(shell sed -n 's/^name = "\(.*\)"/\1/p' Cargo.toml)
VERSION := $(shell sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml)
endif

# OpenBench specifies that the binary name should be changeable with the EXE parameter
Expand All @@ -26,7 +26,7 @@ endif
# Compile an executable for use with OpenBench
openbench:
@echo Compiling $(EXE) for OpenBench
cargo rustc --manifest-path ./toad/Cargo.toml --release --bin toad -- -C target-cpu=native --emit link=$(EXE)
cargo rustc --manifest-path ./Cargo.toml --release --bin toad -- -C target-cpu=native --emit link=$(EXE)

# Remove the EXE created
clean:
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions release-please/.release-please-manifest.json

This file was deleted.

15 changes: 0 additions & 15 deletions release-please/release-please-config.json

This file was deleted.

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.
File renamed without changes.
19 changes: 0 additions & 19 deletions toad/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion toad/README.md

This file was deleted.

0 comments on commit a5b4a5a

Please sign in to comment.