# 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 = "katgpt-core"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared types and SIMD kernels for katgpt-rs and riir-engine"
readme = "README.md"
keywords = [
    "inference",
    "simd",
    "modelless",
    "attention",
    "manifold",
]
categories = [
    "algorithms",
    "science",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/katopz/katgpt-rs"

[features]
ac_prefix = []
action_bridge = []
analytic_lattice = []
and_or_dtree = []
arg_protocol = ["dep:papaya"]
babel_codec = []
bake_precision = ["dep:papaya"]
belief_drafter = []
bisimulation_operator_inference = []
bom_sampling = [
    "micro_belief",
    "simd_sigmoid",
]
cgsp = [
    "data_gate",
    "collapse_aware_thinking",
]
cgsp_dual_pool = ["cgsp"]
chunked_content_store = ["dep:papaya"]
chunked_net_fetch = []
closure_instrument = [
    "dep:papaya",
    "dep:ahash",
]
coda_fusion = []
collapse_aware_thinking = []
committed_field_blend = ["personality_composition"]
comp_width = []
compression_drafter = ["dep:lz4_flex"]
cross_resolution_transport = ["funcattn"]
data_gate = []
dec_operators = []
dec_terrain_ai = ["dec_operators"]
default = [
    "sparse_mlp",
    "plasma_path",
    "leo_all_goals",
    "dual_leo",
    "sigmoid_margin",
    "spectral_hierarchy",
    "dual_gram_pca",
    "roofline_cost",
    "octree_ctc",
    "sector_projection",
    "action_bridge",
    "triggered_injection",
    "temporal_deriv",
    "bom_sampling",
    "personality_composition",
    "depth_invariance",
    "cross_resolution_transport",
    "latent_field_steering",
    "viable_manifold_graph",
    "ac_prefix",
    "geometric_product",
    "fourier_continuation",
    "spectral_differentiation",
    "interest_cochain",
    "tucker_factorization",
    "arg_protocol",
    "indicator_probe_bank",
    "indicator_similarity",
    "phase_rotation_coupling",
    "closure_instrument",
    "non_interference_branches",
    "funcattn_structured_basis",
]
deltanet_inference = []
dendritic_gate = []
depth_invariance = []
dirichlet_energy = []
dllm = []
domain_latent = []
dual_gram_pca = []
dual_leo = ["leo_all_goals"]
engram = [
    "dep:unicode-normalization",
    "dep:papaya",
]
faithfulness_probe = []
flow_field_nav = [
    "leo_all_goals",
    "dep:rustfft",
]
fourier_continuation = []
funcattn = []
funcattn_structured_basis = ["funcattn"]
gain_cost_halt = []
geometric_product = []
gpart_adapter = []
gpart_pruning = ["gpart_adapter"]
hydra_budget = []
ict_branching = []
idea_divergence = ["partial_scoring"]
indicator_cascade = ["indicator_probe_bank"]
indicator_probe_bank = []
indicator_similarity = ["indicator_probe_bank"]
induced_cwm = []
induced_cwm_ismcts = ["induced_cwm"]
induced_cwm_tournament = ["induced_cwm"]
interest_cochain = []
karc_forecaster = []
latent_field_steering = []
lattice_utility = ["dec_operators"]
leo_all_goals = []
lt2_looped = []
maxsim = []
merkle_octree = ["sense_composition"]
micro_belief = []
moa_inference = []
modal_spec = []
mux_bandit_width = []
mux_bfs = ["mux_ddtree"]
mux_ddtree = ["mux_pruner"]
mux_demux = []
mux_freeze_thaw = ["mux_pruner"]
mux_pruner = []
non_interference_branches = []
octree_ctc = ["sense_composition"]
parallax_attn = ["tiled_attention"]
partial_scoring = []
peira_distill = []
personality_composition = []
phase_rotation_coupling = []
plasma_path = []
problem_mutator = []
qgf = [
    "qgf_oracle",
    "qgf_projector",
]
qgf_adaptive = ["qgf_drafter"]
qgf_drafter = ["qgf"]
qgf_oracle = []
qgf_projector = ["speculative_generator"]
questbench = []
rat_plus_bridge = []
recursion_logits = []
review_metrics = []
rim_slots = []
roofline_cost = []
rtdc = [
    "slod",
    "merkle_octree",
    "sense_composition",
]
rtdc_subtree_inclusion = ["rtdc"]
schema_centroid = ["dep:papaya"]
sector_projection = []
self_advantage_gate = []
sense_composition = [
    "plasma_path",
    "domain_latent",
]
sense_lod = [
    "sense_composition",
    "slod",
]
sia_feedback = ["sr2am_configurator"]
sigmoid_margin = ["maxsim"]
simd_sigmoid = []
sink_aware_attn = []
slod = ["spectral_hierarchy"]
smear_classifier = ["faithfulness_probe"]
sparse_mlp = []
spectral_differentiation = ["dep:rustfft"]
spectral_hierarchy = []
spectral_pruner = ["dep:rustfft"]
spectral_threat = [
    "sense_composition",
    "modal_spec",
]
speculative_generator = []
sr2am_configurator = []
subspace_phase_gate = []
substrate_gate = []
temporal_deriv = []
tf_loop = ["lt2_looped"]
tiled_attention = []
triggered_injection = []
tucker_factorization = ["subspace_phase_gate"]
viable_manifold_graph = ["subspace_phase_gate"]
wall_attention = []

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

[[example]]
name = "ac_prefix_demo"
path = "examples/ac_prefix_demo.rs"
required-features = ["ac_prefix"]

[[example]]
name = "bisimulation_demo"
path = "examples/bisimulation_demo.rs"
required-features = ["bisimulation_operator_inference"]

[[example]]
name = "chunked_store_basic"
path = "examples/chunked_store_basic.rs"
required-features = ["chunked_content_store"]

[[example]]
name = "committed_blend_01_three_archetypes"
path = "examples/committed_blend_01_three_archetypes.rs"
required-features = ["committed_field_blend"]

[[example]]
name = "committed_blend_02_recommit_on_event"
path = "examples/committed_blend_02_recommit_on_event.rs"
required-features = ["committed_field_blend"]

[[example]]
name = "karc_double_scroll"
path = "examples/karc_double_scroll.rs"
required-features = ["karc_forecaster"]

[[example]]
name = "karc_double_scroll_higher_order"
path = "examples/karc_double_scroll_higher_order.rs"
required-features = ["karc_forecaster"]

[[example]]
name = "personality_composition_01_basic"
path = "examples/personality_composition_01_basic.rs"
required-features = ["personality_composition"]

[[example]]
name = "personality_composition_02_taming"
path = "examples/personality_composition_02_taming.rs"
required-features = ["personality_composition"]

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

[[example]]
name = "subspace_phase_gate_goat"
path = "examples/subspace_phase_gate_goat.rs"
required-features = ["subspace_phase_gate"]

[[test]]
name = "analytic_lattice_alloc_check"
path = "tests/analytic_lattice_alloc_check.rs"
required-features = ["analytic_lattice"]

[[test]]
name = "analytic_lattice_goat"
path = "tests/analytic_lattice_goat.rs"
required-features = ["analytic_lattice"]

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

[[test]]
name = "bench_331_babel_codec_goat"
path = "tests/bench_331_babel_codec_goat.rs"
harness = false
required-features = ["babel_codec"]

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

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

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

[[test]]
name = "karc_alloc_check"
path = "tests/karc_alloc_check.rs"
required-features = ["karc_forecaster"]

[[test]]
name = "karc_reproducibility"
path = "tests/karc_reproducibility.rs"
required-features = ["karc_forecaster"]

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

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

[[bench]]
name = "bench_313_ac_prefix_goat"
path = "benches/bench_313_ac_prefix_goat.rs"
harness = false
required-features = ["ac_prefix"]

[[bench]]
name = "bench_313_ac_prefix_modelless"
path = "benches/bench_313_ac_prefix_modelless.rs"
harness = false
required-features = ["ac_prefix"]

[[bench]]
name = "bench_319_g8c_formation_robustness"
path = "benches/bench_319_g8c_formation_robustness.rs"
harness = false
required-features = ["geometric_product"]

[[bench]]
name = "bench_319_g8d_faction_diversity"
path = "benches/bench_319_g8d_faction_diversity.rs"
harness = false
required-features = ["geometric_product"]

[[bench]]
name = "bench_319_g8e_aoi_latency"
path = "benches/bench_319_g8e_aoi_latency.rs"
harness = false
required-features = ["geometric_product"]

[[bench]]
name = "bench_319_geometric_product_goat"
path = "benches/bench_319_geometric_product_goat.rs"
harness = false
required-features = ["geometric_product"]

[[bench]]
name = "bench_320_indicator_probe_bank_goat"
path = "benches/bench_320_indicator_probe_bank_goat.rs"
harness = false
required-features = [
    "indicator_probe_bank",
    "indicator_similarity",
    "indicator_cascade",
]

[[bench]]
name = "bench_322_phase_rotation_goat"
path = "benches/bench_322_phase_rotation_goat.rs"
harness = false
required-features = ["phase_rotation_coupling"]

[[bench]]
name = "bench_323_fourier_continuation_goat"
path = "benches/bench_323_fourier_continuation_goat.rs"
harness = false
required-features = ["fourier_continuation"]

[[bench]]
name = "bench_324_bisimulation_goat"
path = "benches/bench_324_bisimulation_goat.rs"
harness = false
required-features = ["bisimulation_operator_inference"]

[[bench]]
name = "bench_325_spectral_differentiation_goat"
path = "benches/bench_325_spectral_differentiation_goat.rs"
harness = false
required-features = ["spectral_differentiation"]

[[bench]]
name = "bench_326_tucker_hosvd_goat"
path = "benches/bench_326_tucker_hosvd_goat.rs"
harness = false
required-features = ["tucker_factorization"]

[[bench]]
name = "bench_327_arg_protocol_goat"
path = "benches/bench_327_arg_protocol_goat.rs"
harness = false
required-features = [
    "arg_protocol",
    "chunked_content_store",
]

[[bench]]
name = "bench_329_non_interference_branches_goat"
path = "benches/bench_329_non_interference_branches_goat.rs"
harness = false
required-features = ["non_interference_branches"]

[[bench]]
name = "committed_field_blend_bench"
path = "benches/committed_field_blend_bench.rs"
harness = false
required-features = ["committed_field_blend"]

[[bench]]
name = "derivative_curiosity_bench"
path = "benches/derivative_curiosity_bench.rs"
harness = false
required-features = [
    "cgsp",
    "temporal_deriv",
]

[[bench]]
name = "engram_micro"
path = "benches/engram_micro.rs"
harness = false
required-features = ["engram"]

[[bench]]
name = "flow_field_bench"
path = "benches/flow_field_bench.rs"
harness = false
required-features = ["flow_field_nav"]

[[bench]]
name = "karc_forecast_bench"
path = "benches/karc_forecast_bench.rs"
harness = false
required-features = ["karc_forecaster"]

[[bench]]
name = "latent_physics_bench"
path = "benches/latent_physics_bench.rs"
harness = false
required-features = [
    "sector_projection",
    "action_bridge",
]

[[bench]]
name = "merkle_octree_bench"
path = "benches/merkle_octree_bench.rs"
harness = false
required-features = ["merkle_octree"]

[[bench]]
name = "micro_belief_bench"
path = "benches/micro_belief_bench.rs"
harness = false
required-features = [
    "micro_belief",
    "bom_sampling",
]

[[bench]]
name = "npc_brain_bench"
path = "benches/npc_brain_bench.rs"
harness = false
required-features = ["sense_composition"]

[[bench]]
name = "personality_composition_bench"
path = "benches/personality_composition_bench.rs"
harness = false
required-features = ["personality_composition"]

[[bench]]
name = "qgf_projector_bench"
path = "benches/qgf_projector_bench.rs"
harness = false
required-features = ["qgf"]

[[bench]]
name = "reconstruction_bench"
path = "benches/reconstruction_bench.rs"
harness = false
required-features = ["sense_composition"]

[[bench]]
name = "rtdc_subtree_bench"
path = "benches/rtdc_subtree_bench.rs"
harness = false
required-features = ["rtdc_subtree_inclusion"]

[[bench]]
name = "self_advantage_hla_bench"
path = "benches/self_advantage_hla_bench.rs"
harness = false
required-features = [
    "self_advantage_gate",
    "sense_composition",
]

[[bench]]
name = "sense_lod"
path = "benches/sense_lod.rs"
harness = false
required-features = ["sense_lod"]

[[bench]]
name = "stokes_calculus_bench"
path = "benches/stokes_calculus_bench.rs"
harness = false
required-features = ["dec_operators"]

[[bench]]
name = "temporal_deriv_bench"
path = "benches/temporal_deriv_bench.rs"
harness = false
required-features = ["temporal_deriv"]

[[bench]]
name = "viable_manifold_graph_bench"
path = "benches/viable_manifold_graph_bench.rs"
harness = false
required-features = ["viable_manifold_graph"]

[[bench]]
name = "zone_lattice_goat"
path = "benches/zone_lattice_goat.rs"
harness = false
required-features = ["lattice_utility"]

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

[dependencies.blake3]
version = "1"

[dependencies.bytemuck]
version = "1"
features = ["derive"]

[dependencies.fastrand]
version = "2"

[dependencies.half]
version = "2"

[dependencies.log]
version = "0.4"

[dependencies.lz4_flex]
version = "0.13"
optional = true

[dependencies.papaya]
version = "0.2"
optional = true

[dependencies.postcard]
version = "1"
features = ["alloc"]

[dependencies.rayon]
version = "1.10"

[dependencies.rustfft]
version = "6"
optional = true

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

[dependencies.unicode-normalization]
version = "0.1"
optional = true

[dev-dependencies.rustfft]
version = "6"

[dev-dependencies.serde_json]
version = "1"

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

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