No description
Find a file
Eryn Wells 4b148529a1 [bitboard] Fix the warning about shared references to mutable static data
I've lived with this warning for a long time because I didn't really understand
it.

```
warning: `chessfriend_core` (lib) generated 1 warning (run `cargo fix --lib -p chessfriend_core` to apply 1 suggestion)
warning: creating a shared reference to mutable static is discouraged
  --> bitboard/src/library.rs:66:9
```

I was able to fix this by creating a new type with a single OnceLock attribute.
The OnceLock acts as a cell, making it mutable, even if self is not. So, you can
declare the MoveLibraryWrapper non-mutable static, but still initialize the
library inside the Cell.
2025-06-08 17:34:42 -07:00
bitboard [bitboard] Fix the warning about shared references to mutable static data 2025-06-08 17:34:42 -07:00
board [board] Remove unused imports and const variables from zobrist.rs 2025-06-08 17:17:05 -07:00
core [core] Remove PlacedPiece 2025-06-08 17:18:41 -07:00
doc Move Notes and ChessPieces docs to a doc directory 2024-01-22 19:27:08 -08:00
explorer [explorer, moves, position] Remove unused MoveBuilder 2025-06-08 17:16:23 -07:00
moves [explorer, moves, position] Remove unused MoveBuilder 2025-06-08 17:16:23 -07:00
perft [perft] A small Perft program 2025-06-08 17:19:00 -07:00
position [explorer, moves, position] Remove unused MoveBuilder 2025-06-08 17:16:23 -07:00
.gitignore Ignore the target/ directory 2023-12-19 11:13:41 -08:00
Cargo.lock [perft] A small Perft program 2025-06-08 17:19:00 -07:00
Cargo.toml [perft] A small Perft program 2025-06-08 17:19:00 -07:00
ChessFriend.code-workspace Visual Studio Code workspace 2024-02-11 10:22:33 -07:00
Makefile WIP 2025-05-08 17:37:59 -07:00
rustfmt.toml Add a rustfmt.toml file 2025-06-07 08:48:45 -07:00