[package]
edition = "2024"
rust-version = "1.89"
name = "archmage"
version = "0.6.1"
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",
"safe_unaligned_simd",
"avx512",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
avx512 = []
default = [
"std",
"macros",
"safe_unaligned_simd",
]
disable_compile_time_tokens = []
macros = ["dep:archmage-macros"]
safe_unaligned_simd = ["dep:safe_unaligned_simd"]
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 = "magetypes_showcase"
path = "examples/magetypes_showcase.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"
[[example]]
name = "unsafe_counterexample"
path = "examples/unsafe_counterexample.rs"
[[test]]
name = "accuracy_test"
path = "tests/accuracy_test.rs"
[[test]]
name = "arcane_macro"
path = "tests/arcane_macro.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 = "cfg_elision"
path = "tests/cfg_elision.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "doc_examples"
path = "tests/doc_examples.rs"
[[test]]
name = "exhaustive_intrinsics"
path = "tests/exhaustive_intrinsics.rs"
[[test]]
name = "feature_consistency"
path = "tests/feature_consistency.rs"
[[test]]
name = "idiomatic_patterns"
path = "tests/idiomatic_patterns.rs"
[[test]]
name = "incant_macro"
path = "tests/incant_macro.rs"
[[test]]
name = "incant_variants"
path = "tests/incant_variants.rs"
[[test]]
name = "magetypes_macro"
path = "tests/magetypes_macro.rs"
[[test]]
name = "miri_safe"
path = "tests/miri_safe.rs"
[[test]]
name = "polyfill_verification"
path = "tests/polyfill_verification.rs"
[[test]]
name = "prelude_docs"
path = "tests/prelude_docs.rs"
[[test]]
name = "rite_macro"
path = "tests/rite_macro.rs"
[[test]]
name = "safe_memory_ops"
path = "tests/safe_memory_ops.rs"
[[test]]
name = "target_feature_nesting"
path = "tests/target_feature_nesting.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 = "token_infrastructure"
path = "tests/token_infrastructure.rs"
[[test]]
name = "token_permutations"
path = "tests/token_permutations.rs"
[[test]]
name = "v2_integration"
path = "tests/v2_integration.rs"
[[test]]
name = "x86_safe_intrinsics"
path = "tests/x86_safe_intrinsics.rs"
[[bench]]
name = "asm_inspection"
path = "benches/asm_inspection.rs"
harness = false
[[bench]]
name = "asm_patterns"
path = "benches/asm_patterns.rs"
harness = false
[[bench]]
name = "safe_memory_overhead"
path = "benches/safe_memory_overhead.rs"
harness = false
[[bench]]
name = "summon_overhead"
path = "benches/summon_overhead.rs"
harness = false
[[bench]]
name = "tokens"
path = "benches/tokens.rs"
harness = false
[dependencies.archmage-macros]
version = "0.6.0"
optional = true
[dependencies.safe_unaligned_simd]
version = "0.2.4"
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.4"
features = ["avx512"]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.trybuild]
version = "1.0"