genetic_algorithms 2.2.0

Library for solving genetic algorithm problems
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.81.0"
name = "genetic_algorithms"
version = "2.2.0"
authors = ["Luis Eduardo Imbernón <imbernon@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for solving genetic algorithm problems"
homepage = "https://github.com/leimbernon/rust_genetic_algorithms.git"
documentation = "https://docs.rs/genetic_algorithms/latest/genetic_algorithms"
readme = "README.md"
keywords = [
    "genetics",
    "algorithm",
    "ai",
    "artificial",
    "intelligence",
]
categories = [
    "emulators",
    "development-tools",
    "science",
    "simulation",
]
license = "Apache-2.0"
repository = "https://github.com/leimbernon/rust_genetic_algorithms.git"

[features]
default = []
observer-metrics = ["dep:metrics"]
observer-tracing = ["dep:tracing"]
serde = [
    "dep:serde",
    "dep:serde_json",
]
visualization = ["dep:plotters"]

[lib]
name = "genetic_algorithms"
path = "src/lib.rs"

[[example]]
name = "feature_selection"
path = "examples/feature_selection.rs"

[[example]]
name = "island_model"
path = "examples/island_model.rs"

[[example]]
name = "job_scheduling"
path = "examples/job_scheduling.rs"

[[example]]
name = "knapsack_binary"
path = "examples/knapsack_binary.rs"

[[example]]
name = "niching"
path = "examples/niching.rs"

[[example]]
name = "nqueens_range"
path = "examples/nqueens_range.rs"

[[example]]
name = "nsga2_zdt1"
path = "examples/nsga2_zdt1.rs"

[[example]]
name = "onemax_binary"
path = "examples/onemax_binary.rs"

[[example]]
name = "onemax_extension"
path = "examples/onemax_extension.rs"

[[example]]
name = "rastrigin"
path = "examples/rastrigin.rs"

[[test]]
name = "structures"
path = "tests/structures.rs"

[[test]]
name = "test_checkpoint"
path = "tests/test_checkpoint.rs"

[[test]]
name = "test_chromosomes"
path = "tests/test_chromosomes.rs"

[[test]]
name = "test_composite_observer"
path = "tests/test_composite_observer.rs"

[[test]]
name = "test_error"
path = "tests/test_error.rs"

[[test]]
name = "test_extension"
path = "tests/test_extension.rs"

[[test]]
name = "test_extension_configuration"
path = "tests/test_extension_configuration.rs"

[[test]]
name = "test_fitness"
path = "tests/test_fitness.rs"

[[test]]
name = "test_fitness_cache"
path = "tests/test_fitness_cache.rs"

[[test]]
name = "test_ga"
path = "tests/test_ga.rs"

[[test]]
name = "test_genotypes_list"
path = "tests/test_genotypes_list.rs"

[[test]]
name = "test_initializers"
path = "tests/test_initializers.rs"

[[test]]
name = "test_island"
path = "tests/test_island.rs"

[[test]]
name = "test_metrics_observer"
path = "tests/test_metrics_observer.rs"

[[test]]
name = "test_niching"
path = "tests/test_niching.rs"

[[test]]
name = "test_nsga2"
path = "tests/test_nsga2.rs"

[[test]]
name = "test_observer"
path = "tests/test_observer.rs"

[[test]]
name = "test_observer_reexports"
path = "tests/test_observer_reexports.rs"

[[test]]
name = "test_operations"
path = "tests/test_operations.rs"

[[test]]
name = "test_population"
path = "tests/test_population.rs"

[[test]]
name = "test_reporter"
path = "tests/test_reporter.rs"

[[test]]
name = "test_rng"
path = "tests/test_rng.rs"

[[test]]
name = "test_serde"
path = "tests/test_serde.rs"

[[test]]
name = "test_stats"
path = "tests/test_stats.rs"

[[test]]
name = "test_sub_trait_observers"
path = "tests/test_sub_trait_observers.rs"

[[test]]
name = "test_tracing_observer"
path = "tests/test_tracing_observer.rs"

[[test]]
name = "test_validators"
path = "tests/test_validators.rs"

[[test]]
name = "test_visualization"
path = "tests/test_visualization.rs"

[[bench]]
name = "crossover"
path = "benches/crossover.rs"
harness = false

[[bench]]
name = "ga_run"
path = "benches/ga_run.rs"
harness = false

[[bench]]
name = "island_ga"
path = "benches/island_ga.rs"
harness = false

[[bench]]
name = "metrics_observer"
path = "benches/metrics_observer.rs"
harness = false
required-features = ["observer-metrics"]

[[bench]]
name = "mutation"
path = "benches/mutation.rs"
harness = false

[[bench]]
name = "nsga2"
path = "benches/nsga2.rs"
harness = false

[[bench]]
name = "selection"
path = "benches/selection.rs"
harness = false

[[bench]]
name = "survivor"
path = "benches/survivor.rs"
harness = false

[dependencies.env_logger]
version = "0.11.5"

[dependencies.log]
version = "0.4.22"
features = [
    "std",
    "serde",
    "kv_unstable",
]

[dependencies.metrics]
version = "0.24"
optional = true

[dependencies.plotters]
version = "0.3.7"
features = [
    "bitmap_backend",
    "bitmap_encoder",
    "svg_backend",
    "line_series",
    "histogram",
    "ab_glyph",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.9.2"

[dependencies.rayon]
version = "1.10"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tracing-log]
version = "0.2"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]