Skip to content

Commit

Permalink
Turn examples into crates
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Jan 15, 2024
1 parent 3cdb0cb commit 86a8eaa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ members = [
"argmin-math",
"observers/*",
"tools/spectator",

"examples/*",
]

exclude = [
Expand Down
4 changes: 0 additions & 4 deletions argmin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ maintenance = { status = "actively-developed" }
targets = ["x86_64-unknown-linux-gnu"]
features = ["serde1"]

[[example]]
name = "backtracking"
required-features = []

[[example]]
name = "bfgs"
required-features = ["argmin-math/ndarray_latest-serde"]
Expand Down
17 changes: 17 additions & 0 deletions examples/backtracking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "example-backtracking"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
argmin = { version = "*", path = "../../argmin" }
argmin-math = { version = "*", features = ["vec"], path = "../../argmin-math" }
argmin-observer-slog = { version = "*", path = "../../observers/slog/" }
argmin_testfunctions = "*"

[features]
wasm-bindgen = ["argmin/wasm-bindgen"]
File renamed without changes.

0 comments on commit 86a8eaa

Please sign in to comment.