Skip to content

Commit

Permalink
chore: reorganize the repo to workspace
Browse files Browse the repository at this point in the history
The plan is to move all fundamental blocks to a separate "gomez_core"
crate which can be used for implementing solvers and optimizers in other
libraries, without the need to import implementations in gomez.

There may be further splitting done in the future.
  • Loading branch information
pnevyk committed Jan 29, 2024
1 parent f4fad97 commit 2cfa7a3
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 31 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ jobs:
working-directory: gsl-wrapper
run: cargo test --profile ${{ matrix.profile }}

- name: Run checks (benches)
working-directory: gomez-bench
run: cargo check --profile ${{ matrix.profile }}

rust-check-docs:
name: Rust docs check
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: cargo test

- name: Publish package
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} --package gomez
28 changes: 4 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
[package]
name = "gomez"
version = "0.5.0"
authors = ["Petr Nevyhoštěný <[email protected]>"]
description = "Framework and implementation for mathematical optimization and solving non-linear systems of equations."
documentation = "https://docs.rs/gomez/"
repository = "https://github.com/datamole-ai/gomez"
license = "MIT"
readme = "README.md"
keywords = ["nonlinear-equations", "optimization", "math", "science"]
categories = ["science", "mathematics"]
edition = "2021"

[features]
testing = []

[dependencies]
approx = "0.5.0"
fastrand = "2.0.0"
fastrand-contrib = "0.1.0"
getset = "0.1.0"
log = "0.4.0"
nalgebra = "0.32.0"
thiserror = "1.0.0"
[workspace]
members = ["crates/*"]
exclude = ["gsl-wrapper"]
resolver = "2"
4 changes: 2 additions & 2 deletions gomez-bench/Cargo.toml → crates/gomez-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"

[dependencies]
divan = "0.1.2"
gomez = { path = "..", features = ["testing"] }
gsl-wrapper = { path = "../gsl-wrapper" }
gomez = { path = "../gomez", features = ["testing"] }
gsl-wrapper = { path = "../../gsl-wrapper" }

[[bench]]
name = "main"
Expand Down
File renamed without changes.
24 changes: 24 additions & 0 deletions crates/gomez/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "gomez"
version = "0.5.0"
authors = ["Petr Nevyhoštěný <[email protected]>"]
description = "Framework and implementation for mathematical optimization and solving non-linear systems of equations."
documentation = "https://docs.rs/gomez/"
repository = "https://github.com/datamole-ai/gomez"
license = "MIT"
readme = "../../README.md"
keywords = ["nonlinear-equations", "optimization", "math", "science"]
categories = ["science", "mathematics"]
edition = "2021"

[features]
testing = []

[dependencies]
approx = "0.5.0"
fastrand = "2.0.0"
fastrand-contrib = "0.1.0"
getset = "0.1.0"
log = "0.4.0"
nalgebra = "0.32.0"
thiserror = "1.0.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2cfa7a3

Please sign in to comment.