[package]
edition = "2024"
rust-version = "1.89"
name = "archmage"
version = "0.9.12"
build = false
include = [
"src/**",
"benches/**",
"tests/**",
"examples/**",
"token-registry.toml",
"Cargo.toml",
"Cargo.lock",
"README.md",
"CHANGELOG.md",
"LICENSE*",
]
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",
"avx512",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
avx512 = [
"safe_unaligned_simd/avx512",
"archmage-macros/avx512",
]
default = ["std"]
macros = []
safe_unaligned_simd = []
std = []
testable_dispatch = []
[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 = "cpu_survey"
path = "examples/cpu_survey.rs"
[[example]]
name = "cross_platform"
path = "examples/cross_platform.rs"
[[example]]
name = "detect_features"
path = "examples/detect_features.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 = "generic_simd"
path = "examples/generic_simd.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_inherent_no_receiver"
path = "tests/arcane_inherent_no_receiver.rs"
[[test]]
name = "arcane_macro"
path = "tests/arcane_macro.rs"
[[test]]
name = "arcane_trait_recognition"
path = "tests/arcane_trait_recognition.rs"
[[test]]
name = "arm_feature_intrinsics"
path = "tests/arm_feature_intrinsics.rs"
[[test]]
name = "arm_safe_intrinsics"
path = "tests/arm_safe_intrinsics.rs"
[[test]]
name = "autoversion_macro"
path = "tests/autoversion_macro.rs"
[[test]]
name = "avx512_intrinsics_exercise"
path = "tests/avx512_intrinsics_exercise.rs"
[[test]]
name = "avx512fp16_intrinsics"
path = "tests/avx512fp16_intrinsics.rs"
[[test]]
name = "cfg_elision"
path = "tests/cfg_elision.rs"
[[test]]
name = "cfg_feature_syntax"
path = "tests/cfg_feature_syntax.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 = "import_params"
path = "tests/import_params.rs"
[[test]]
name = "incant_cfgout"
path = "tests/incant_cfgout.rs"
[[test]]
name = "incant_macro"
path = "tests/incant_macro.rs"
[[test]]
name = "incant_variants"
path = "tests/incant_variants.rs"
[[test]]
name = "macro_behavioral_contracts"
path = "tests/macro_behavioral_contracts.rs"
[[test]]
name = "magetypes_macro"
path = "tests/magetypes_macro.rs"
[[test]]
name = "miri_safe"
path = "tests/miri_safe.rs"
[[test]]
name = "name_mangling"
path = "tests/name_mangling.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 = "self_replacement"
path = "tests/self_replacement.rs"
[[test]]
name = "sibling_expansion"
path = "tests/sibling_expansion.rs"
[[test]]
name = "stub_param"
path = "tests/stub_param.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 = "tier_modifiers"
path = "tests/tier_modifiers.rs"
[[test]]
name = "token_downcast"
path = "tests/token_downcast.rs"
[[test]]
name = "token_infrastructure"
path = "tests/token_infrastructure.rs"
[[test]]
name = "token_permutations"
path = "tests/token_permutations.rs"
[[test]]
name = "transcendental_accuracy"
path = "tests/transcendental_accuracy.rs"
[[test]]
name = "transcendental_edge_cases"
path = "tests/transcendental_edge_cases.rs"
[[test]]
name = "v2_integration"
path = "tests/v2_integration.rs"
[[test]]
name = "wasm_intrinsics_exercise"
path = "tests/wasm_intrinsics_exercise.rs"
[[test]]
name = "x86_crypto_intrinsics"
path = "tests/x86_crypto_intrinsics.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 = "cbrt_variants"
path = "benches/cbrt_variants.rs"
harness = false
[[bench]]
name = "generic_vs_concrete"
path = "benches/generic_vs_concrete.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.9.12"
[dependencies.safe_unaligned_simd]
version = "0.2.5"
[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.5"
features = ["avx512"]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.trybuild]
version = "1.0"