archmage 0.4.0

Safely invoke your intrinsic power, using the tokens granted to you by the CPU. Cast primitive magics faster than any mage alive.
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"
rust-version = "1.89"
name = "archmage"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safely invoke your intrinsic power, using the tokens granted to you by the CPU. Cast primitive magics faster than any mage alive."
documentation = "https://docs.rs/archmage"
readme = "README.md"
keywords = [
    "simd",
    "avx",
    "neon",
    "wasm",
    "safe",
]
categories = [
    "development-tools",
    "hardware-support",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/imazen/archmage"

[package.metadata.docs.rs]
features = [
    "std",
    "macros",
    "bytemuck",
    "avx512",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "aarch64-unknown-linux-gnu",
    "wasm32-unknown-unknown",
]

[features]
avx512 = []
bytemuck = ["dep:bytemuck"]
default = [
    "std",
    "macros",
    "bytemuck",
]
macros = ["dep:archmage-macros"]
std = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.archmage-macros]
version = "0.4.0"
optional = true

[dependencies.bytemuck]
version = "1.24"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.safe_unaligned_simd]
version = "0.2.3"
features = ["avx512"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.trybuild]
version = "1.0"