spintronics 0.3.0

Pure Rust library for simulating spin dynamics, spin current generation, and conversion phenomena in magnetic and topological materials
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 = "2021"
rust-version = "1.70.0"
name = "spintronics"
version = "0.3.0"
authors = ["COOLJAPAN OÜ (Team KitaSan)"]
build = false
exclude = [
    "test_*",
    "performance_*",
    "*.csv",
    "*.vtu",
    "*.vtk",
    "*.json",
    "wasm-demo/pkg/",
    "pkg/",
    "pkg-bundler/",
    "pkg-web/",
    "pkg-node/",
    ".cargo/",
    "TODO.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust library for simulating spin dynamics, spin current generation, and conversion phenomena in magnetic and topological materials"
homepage = "https://github.com/cool-japan/spintronics"
documentation = "https://docs.rs/spintronics"
readme = "README.md"
keywords = [
    "spintronics",
    "magnetism",
    "physics",
    "simulation",
    "materials",
]
categories = [
    "science",
    "simulation",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cool-japan/spintronics"

[features]
default = [
    "fem",
    "scirs2",
    "serde",
]
fem = ["scirs2-spatial"]
hdf5 = ["dep:hdf5"]
parallel = ["rayon"]
python = [
    "pyo3",
    "numpy",
]
scirs2 = ["scirs2-core"]
serde = [
    "dep:serde",
    "dep:serde_json",
]
wasm = [
    "wasm-bindgen",
    "wasm-bindgen-futures",
    "js-sys",
    "web-sys",
    "console_error_panic_hook",
    "getrandom",
]

[lib]
name = "spintronics"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[example]]
name = "2d_material_spintronics"
path = "examples/2d_material_spintronics.rs"

[[example]]
name = "advanced_spintronics"
path = "examples/advanced_spintronics.rs"

[[example]]
name = "altermagnet_ruo2"
path = "examples/altermagnet_ruo2.rs"

[[example]]
name = "fem_micromagnetics"
path = "examples/fem_micromagnetics.rs"

[[example]]
name = "fluid_barnett"
path = "examples/fluid_barnett.rs"

[[example]]
name = "hopfion_3d"
path = "examples/hopfion_3d.rs"

[[example]]
name = "llg_dynamics_visualization"
path = "examples/llg_dynamics_visualization.rs"

[[example]]
name = "magnetoelastic_switching"
path = "examples/magnetoelastic_switching.rs"

[[example]]
name = "magnon_bec"
path = "examples/magnon_bec.rs"

[[example]]
name = "magnon_propagation"
path = "examples/magnon_propagation.rs"

[[example]]
name = "magnonic_crystal"
path = "examples/magnonic_crystal.rs"

[[example]]
name = "mech_coupling"
path = "examples/mech_coupling.rs"

[[example]]
name = "orbital_hall_effect"
path = "examples/orbital_hall_effect.rs"

[[example]]
name = "parallel_magnon_dynamics"
path = "examples/parallel_magnon_dynamics.rs"

[[example]]
name = "reservoir_computing"
path = "examples/reservoir_computing.rs"

[[example]]
name = "saitoh_2006_ishe"
path = "examples/saitoh_2006_ishe.rs"

[[example]]
name = "simulation_builder"
path = "examples/simulation_builder.rs"

[[example]]
name = "skyrmion_dynamics"
path = "examples/skyrmion_dynamics.rs"

[[example]]
name = "skyrmion_visualization"
path = "examples/skyrmion_visualization.rs"

[[example]]
name = "spin_ice_monopoles"
path = "examples/spin_ice_monopoles.rs"

[[example]]
name = "spin_torque_oscillator"
path = "examples/spin_torque_oscillator.rs"

[[example]]
name = "spin_wave_dispersion"
path = "examples/spin_wave_dispersion.rs"

[[example]]
name = "thermal_magnon_transport"
path = "examples/thermal_magnon_transport.rs"

[[example]]
name = "topological_insulator"
path = "examples/topological_insulator.rs"

[[example]]
name = "yig_pt_pumping"
path = "examples/yig_pt_pumping.rs"

[[bench]]
name = "llg_benchmark"
path = "benches/llg_benchmark.rs"
harness = false

[[bench]]
name = "spinchain_benchmark"
path = "benches/spinchain_benchmark.rs"
harness = false

[[bench]]
name = "vector3_benchmark"
path = "benches/vector3_benchmark.rs"
harness = false

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
optional = true

[dependencies.hdf5]
version = "0.8"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.numpy]
version = "0.25"
optional = true

[dependencies.pyo3]
version = "0.25"
features = ["extension-module"]
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.scirs2-core]
version = "0.3.1"
features = [
    "random",
    "parallel",
]
optional = true

[dependencies.scirs2-spatial]
version = "0.3.1"
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true

[dependencies.web-sys]
version = "0.3"
features = [
    "console",
    "Window",
    "Document",
]
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.wasm-bindgen-test]
version = "0.3"