Skip to content

Commit

Permalink
Merge pull request #14 from s-simoncelli/change-toml-fles-for-publishing
Browse files Browse the repository at this point in the history
Changed toml files for publishing
  • Loading branch information
s-simoncelli authored Aug 10, 2024
2 parents 1b88a5e + 30b8a46 commit e4531eb
Show file tree
Hide file tree
Showing 79 changed files with 178 additions and 8,838 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --all

fmt:
name: Rustfmt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --all
# NOTE disabled due to compiler failure in hv-fonseca crate
# test-windows:
# name: Cargo check and test on Windows
Expand All @@ -33,4 +33,4 @@ jobs:
# - name: Build
# run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose
# run: cargo test --verbose --all
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target
.idea
*.o
*.a
*.a
.DS_Store
104 changes: 69 additions & 35 deletions Cargo.lock

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

49 changes: 47 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
[package]
name = "optirustic"
version = "0.2.3"
authors = ["Stefano Simoncelli <[email protected]>"]
edition = "2021"
rust-version = "1.80"
description = "A multi-objective optimisation framework for Rust"
repository = "https://github.com/s-simoncelli/optirustic"
keywords = ["genetic-algorithm", "optimisation", "multiobjective", "nsga2", "nsga3"]
categories = ["science", "algorithms"]
readme = "README.md"
license = "GPL-3.0-only"

[workspace]
resolver = "2"
members = ["optirustic", "optirustic-macros", "hv-fonseca-et-al-2006-sys", "hv-wfg-sys"]
default-members = ["optirustic", "hv-fonseca-et-al-2006-sys", "hv-wfg-sys"]
members = ["optirustic-macros", "hv-fonseca-et-al-2006-sys", "hv-wfg-sys"]
default-members = ["optirustic-macros", "hv-fonseca-et-al-2006-sys", "hv-wfg-sys"]

[lib]
name = "optirustic"

[dependencies]
log = "0.4.21"
serde_json = "1.0"
serde = { version = "1.0.200", features = ["derive"] }
rand = "0.8.5"
rand_chacha = "0.3.1"
thiserror = "1.0.60"
rayon = "1.10.0"
env_logger = "0.11.3"
chrono = { version = "0.4.38", features = ["serde"] }
ordered-float = "4.2.0"
optirustic-macros = { path = "optirustic-macros", version = "0.1.0" }
hv-fonseca-et-al-2006-sys = { path = "hv-fonseca-et-al-2006-sys", version = "2.0.2-rc.2" }
hv-wfg-sys = { path = "hv-wfg-sys", version = "0.1.1" }
plotters = { version = "0.3.6", optional = true }
nalgebra = "0.33.0"

[dev-dependencies]
float-cmp = "0.9.0"

[features]
default = ["plot"]
plot = ["dep:plotters"]

[package.metadata.docs.rs]
all-features = true
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--html-in-header", "src/katex-header.html"]

# Run test with optimisation to speed up tests solving optimisation problems.
[profile.test]
Expand Down
Loading

0 comments on commit e4531eb

Please sign in to comment.