Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: "Login"
run: cargo login --key ${{ secrets.CARGO_TOKEN }}
- name: "Publish common"
run: cargo +nightly publish -p genetic-rs-common
run: cargo +nightly publish -p genetic-rs-common --token ${{ secrets.CARGO_TOKEN }}
- name: "Publish macros"
run: cargo +nightly publish -p genetic-rs-macros
run: cargo +nightly publish -p genetic-rs-macros --token ${{ secrets.CARGO_TOKEN }}
- name: "Publish main"
run: cargo +nightly publish -p genetic-rs
run: cargo +nightly publish -p genetic-rs --token ${{ secrets.CARGO_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
A small crate for quickstarting genetic algorithm projects.

### Features
First off, this crate comes with the `builtin`, `crossover`, and `genrand` features by default. If you want it to be parallelized, you can add the `rayon` feature. If you want your crossover to be speciated, you can add the `speciation` feature.
First off, this crate comes with the `builtin`, `crossover`, and `genrand` features by default. If you want it to be parallelized (which is true in most cases), you can add the `rayon` feature. If you want your crossover to be speciated, you can add the `speciation` feature.

### How to Use
> [!NOTE]
> If you are interested in implementing NEAT with this, try out the [neat](https://crates.io/crates/neat) crate

Here's a simple genetic algorithm.
Here's a simple genetic algorithm:

```rust
use genetic_rs::prelude::*;
Expand Down