GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — genoxide/Cargo.toml at main · tachsin/genoxide Expand file tree/ Copy pathCargo.tomlMore file actions 156 lines (132 loc) · 4.87 KB / Copy pathCargo.tomlFile metadata and controls156 lines (132 loc) · 4.87 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 [workspace] # the library, the root package, and its Python package, which share the version and Cargo.lock. # (With "." among the members, the members would include every directory, excluded ones too.) members = ["python"] # cargo commands at the root build the library only: maturin builds the Python package default-members = ["."] # crates of their own, with genoxide as a path dependency exclude = ["benchmarks", "examples/gpu"] [workspace.package] # genoxide's version, which the Python package has as well: release-plz bumps it here version = "0.13.1" [package] name = "genoxide" version.workspace = true edition = "2024" rust-version = "1.95" description = "Optimization for Rust and Python: genetic algorithms, CMA-ES, differential evolution, multi-objective, genetic programming, L-BFGS-B, Adam, MMA, Bayesian optimization and more, reproducible on every platform" license = "MIT OR Apache-2.0" repository = "https://github.com/tachsin/genoxide" readme = "README.md" exclude = [".github/", "/assets/", "benchmarks/", "examples/gpu/", "python/", "release-plz.toml", "/site/"] keywords = ["optimization", "genetic-algorithm", "metaheuristics", "multi-objective", "lbfgs"] categories = ["algorithms", "science", "mathematics"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] rand = "0.10" rand_chacha = "0.10" postcard = { version = "1.1", optional = true, default-features = false, features = ["use-std"] } rayon = { version = "1.12", optional = true } serde = { version = "1.0.219", optional = true, features = ["derive"] } serde_json = { version = "1", optional = true, features = ["float_roundtrip"] } toml = { version = "0.9", optional = true, default-features = false, features = ["parse", "serde"] } tracing = { version = "0.1.41", optional = true, default-features = false, features = ["std"] } libm = "0.2" [features] default = ["parallel"] # parallel fitness evaluation with rayon parallel = ["dep:rayon"] # a span per run and events per generation, with the target `genoxide` tracing = ["dep:tracing"] # Serialize and Deserialize for algorithms and their parts, and checkpoints to resume a run serde = ["dep:serde", "dep:postcard", "rand_chacha/serde"] # the `genoxide` program: runs described in TOML or JSON files, with any program as the fitness cli = ["parallel", "serde", "dep:serde_json", "dep:toml"] [dev-dependencies] criterion = "0.8" gungraun = "0.19.4" proptest = "1" serde_json = { version = "1", features = ["float_roundtrip"] } # the examples are examples/<name>/main.rs, which Cargo finds; this one needs rayon [[example]] name = "asynchronous" path = "examples/asynchronous/main.rs" required-features = ["parallel"] # parallel evaluation, for the same results sooner [[example]] name = "nguyen_all" path = "examples/nguyen_all/main.rs" required-features = ["parallel"] [[example]] name = "accuracy_and_size" path = "examples/accuracy_and_size/main.rs" required-features = ["parallel"] [[example]] name = "two_spirals" path = "examples/two_spirals/main.rs" required-features = ["parallel"] # the dual's sums in parallel [[example]] name = "mma" path = "examples/mma/main.rs" required-features = ["parallel"] # the points of a batch evaluated in parallel [[example]] name = "bo_hartmann6" path = "examples/bo_hartmann6/main.rs" required-features = ["parallel"] # the contrast's batches evaluated in parallel [[example]] name = "bo_asynchronous" path = "examples/bo_asynchronous/main.rs" required-features = ["parallel"] # slow evaluations (Weierstrass), or up to half a million per run (Katsuura), evaluated in parallel [[example]] name = "weierstrass" path = "examples/weierstrass/main.rs" required-features = ["parallel"] [[example]] name = "katsuura" path = "examples/katsuura/main.rs" required-features = ["parallel"] [[bin]] name = "genoxide" required-features = ["cli"] # parallel breeding and evaluation # a counting allocator: without the test harness, whose threads allocate while it counts [[test]] name = "allocations" harness = false [[bench]] name = "hot_paths" harness = false required-features = ["parallel"] [[bench]] name = "instructions" harness = false # the linear algebra on one thread and on eight [[bench]] name = "linalg" harness = false required-features = ["parallel"] # L-BFGS-B at 10³, 10⁵ and 10⁶ genes: the time of a round and the peak memory [[bench]] name = "lbfgsb" harness = false # the first-order methods' steps at up to a million genes [[bench]] name = "first_order" harness = false # MMA's iterations at 10³ to 10⁶ genes, with the dual's sums in parallel too [[bench]] name = "mma" harness = false required-features = ["parallel"] # the Python package's wheels: `profile` in python/pyproject.toml. Thin LTO, on every codegen unit: # measured on 4 cores, it builds the bindings in 130 s against fat LTO's 458 s with one unit, and # the Python examples run as fast (within 3% either way) [profile.wheel] inherits = "release" lto = "thin" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |