stem_core 0.2.3

Magnetic core definition for stem - a Simulation Toolbox for Electric Motors.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "stem_core"
version = "0.2.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Magnetic core definition for stem - a Simulation Toolbox for Electric Motors."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/StefanMathis/stem_core.git"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "serde",
    "cairo",
    "doc-images",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cairo = [
    "stem_slot/cairo",
    "stem_magnet/cairo",
]
default = []
doc-images = ["dep:embed-doc-image"]
serde = [
    "dep:serde_mosaic",
    "dep:deserialize_untagged_verbose_error",
    "dep:serde",
    "dep:typetag",
    "stem_slot/serde",
    "stem_magnet/serde",
]

[lib]
name = "stem_core"
path = "src/lib.rs"

[[example]]
name = "air_gap_plots"
path = "examples/air_gap_plots.rs"
required-features = ["cairo"]

[[example]]
name = "flux_barrier_plots"
path = "examples/flux_barrier_plots.rs"
required-features = ["cairo"]

[[example]]
name = "lin_and_rot_core_plots"
path = "examples/lin_and_rot_core_plots.rs"
required-features = ["cairo"]

[[example]]
name = "magnet_plots"
path = "examples/magnet_plots.rs"
required-features = ["cairo"]

[[example]]
name = "pole_coverage"
path = "examples/pole_coverage.rs"
required-features = ["cairo"]

[[example]]
name = "readme_plots"
path = "examples/readme_plots.rs"
required-features = ["cairo"]

[[example]]
name = "set_flux_barrier"
path = "examples/set_flux_barrier.rs"
required-features = ["cairo"]

[[example]]
name = "winding_zone_plots"
path = "examples/winding_zone_plots.rs"
required-features = ["cairo"]

[[test]]
name = "core_lin_plain"
path = "tests/core_lin_plain.rs"

[[test]]
name = "core_lin_slotted"
path = "tests/core_lin_slotted.rs"

[[test]]
name = "core_lin_straight_indents"
path = "tests/core_lin_straight_indents.rs"

[[test]]
name = "core_rot_plain"
path = "tests/core_rot_plain.rs"

[[test]]
name = "core_rot_slotted"
path = "tests/core_rot_slotted.rs"

[[test]]
name = "core_rot_straight_indents"
path = "tests/core_rot_straight_indents.rs"

[[test]]
name = "magnets"
path = "tests/magnets.rs"

[[test]]
name = "skew_and_slot_opening_factor"
path = "tests/skew_and_slot_opening_factor.rs"

[[test]]
name = "spoke1_flux_barrier_lin"
path = "tests/spoke1_flux_barrier_lin.rs"

[[test]]
name = "spoke1_flux_barrier_rot"
path = "tests/spoke1_flux_barrier_rot.rs"

[[test]]
name = "v1r_flux_barrier_rot"
path = "tests/v1r_flux_barrier_rot.rs"

[[test]]
name = "v2r_flux_barrier_rot"
path = "tests/v2r_flux_barrier_rot.rs"

[[test]]
name = "winding_zones"
path = "tests/winding_zones.rs"

[dependencies.approxim]
version = "0.6"

[dependencies.compare_variables]
version = "0.3.0"
features = ["proc_macro"]

[dependencies.deserialize_untagged_verbose_error]
version = "0.1.8"
optional = true

[dependencies.dyn-clone]
version = "1"

[dependencies.embed-doc-image]
version = "0.1.4"
optional = true

[dependencies.num]
version = "0.4"

[dependencies.rayon]
version = "1.5"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_mosaic]
version = "0.3"
optional = true

[dependencies.stem_magnet]
version = "0.6.1"

[dependencies.stem_slot]
version = "0.5.1"

[dependencies.typetag]
version = "^0.2"
optional = true

[dev-dependencies.indoc]
version = "1.0"

[dev-dependencies.serde_yaml]
version = "0.8"

[target.'cfg(target_os = "linux")'.dev-dependencies.cairo_viewport]
version = "0.3"
features = ["image-compare"]