Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change toml files for publishing #14

Merged
merged 14 commits into from
Aug 10, 2024
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
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 <16114781+s-simoncelli@users.noreply.github.com>"]
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
Loading