[package]
edition = "2024"
rust-version = "1.85"
name = "ilo"
version = "0.12.0"
authors = ["Daniel John Morris"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ilo - the token-minimal programming language AI agents write"
homepage = "https://github.com/ilo-lang/ilo"
readme = "README.md"
keywords = [
"language",
"ai",
"interpreter",
"compiler",
"vm",
]
categories = [
"compilers",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/ilo-lang/ilo"
[features]
cranelift = [
"dep:cranelift-codegen",
"dep:cranelift-frontend",
"dep:cranelift-jit",
"dep:cranelift-module",
"dep:cranelift-native",
"dep:cranelift-object",
"dep:target-lexicon",
]
default = [
"cranelift",
"http",
]
http = ["dep:minreq"]
llvm = ["dep:inkwell"]
tools = [
"dep:tokio",
"dep:reqwest",
]
[lib]
name = "ilo"
crate-type = [
"staticlib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "ilo"
path = "src/main.rs"
[[test]]
name = "binary_size"
path = "tests/binary_size.rs"
[[test]]
name = "bump_version_script"
path = "tests/bump_version_script.rs"
[[test]]
name = "cli_integration"
path = "tests/cli_integration.rs"
[[test]]
name = "cli_run_flag_placement"
path = "tests/cli_run_flag_placement.rs"
[[test]]
name = "cli_verbs"
path = "tests/cli_verbs.rs"
[[test]]
name = "coverage_cranelift_compile"
path = "tests/coverage_cranelift_compile.rs"
[[test]]
name = "coverage_interpreter"
path = "tests/coverage_interpreter.rs"
[[test]]
name = "coverage_jit_cranelift"
path = "tests/coverage_jit_cranelift.rs"
[[test]]
name = "coverage_parser"
path = "tests/coverage_parser.rs"
[[test]]
name = "coverage_verify"
path = "tests/coverage_verify.rs"
[[test]]
name = "coverage_vm_mod"
path = "tests/coverage_vm_mod.rs"
[[test]]
name = "error_code_namespaces"
path = "tests/error_code_namespaces.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "eval_inline"
path = "tests/eval_inline.rs"
[[test]]
name = "examples"
path = "tests/examples.rs"
[[test]]
name = "examples_engines"
path = "tests/examples_engines.rs"
[[test]]
name = "http"
path = "tests/http.rs"
[[test]]
name = "json_output_contracts"
path = "tests/json_output_contracts.rs"
[[test]]
name = "marketplace_integration"
path = "tests/marketplace_integration.rs"
[[test]]
name = "regression_add_ss_aliasing"
path = "tests/regression_add_ss_aliasing.rs"
[[test]]
name = "regression_aot_default_entry"
path = "tests/regression_aot_default_entry.rs"
[[test]]
name = "regression_aot_signal_diagnostic"
path = "tests/regression_aot_signal_diagnostic.rs"
[[test]]
name = "regression_aot_strconst_interning"
path = "tests/regression_aot_strconst_interning.rs"
[[test]]
name = "regression_aot_wrapper_strip"
path = "tests/regression_aot_wrapper_strip.rs"
[[test]]
name = "regression_async_tool"
path = "tests/regression_async_tool.rs"
[[test]]
name = "regression_at_builtin"
path = "tests/regression_at_builtin.rs"
[[test]]
name = "regression_at_string"
path = "tests/regression_at_string.rs"
[[test]]
name = "regression_bangbang"
path = "tests/regression_bangbang.rs"
[[test]]
name = "regression_bare_bang_nil"
path = "tests/regression_bare_bang_nil.rs"
[[test]]
name = "regression_bench_engine_field"
path = "tests/regression_bench_engine_field.rs"
[[test]]
name = "regression_bool_ternary_brace"
path = "tests/regression_bool_ternary_brace.rs"
[[test]]
name = "regression_bool_ternary_prefix"
path = "tests/regression_bool_ternary_prefix.rs"
[[test]]
name = "regression_builtin_binding_name"
path = "tests/regression_builtin_binding_name.rs"
[[test]]
name = "regression_builtin_bridge"
path = "tests/regression_builtin_bridge.rs"
[[test]]
name = "regression_builtin_fn_name"
path = "tests/regression_builtin_fn_name.rs"
[[test]]
name = "regression_builtins_as_hof"
path = "tests/regression_builtins_as_hof.rs"
[[test]]
name = "regression_camelcase_dot"
path = "tests/regression_camelcase_dot.rs"
[[test]]
name = "regression_chars"
path = "tests/regression_chars.rs"
[[test]]
name = "regression_chunks"
path = "tests/regression_chunks.rs"
[[test]]
name = "regression_cl_divzero_parity"
path = "tests/regression_cl_divzero_parity.rs"
[[test]]
name = "regression_clamp"
path = "tests/regression_clamp.rs"
[[test]]
name = "regression_cli_arity_silent_corruption"
path = "tests/regression_cli_arity_silent_corruption.rs"
[[test]]
name = "regression_cli_default"
path = "tests/regression_cli_default.rs"
[[test]]
name = "regression_cli_text_arg"
path = "tests/regression_cli_text_arg.rs"
[[test]]
name = "regression_closure_bind"
path = "tests/regression_closure_bind.rs"
[[test]]
name = "regression_comment_parse_corrupt"
path = "tests/regression_comment_parse_corrupt.rs"
[[test]]
name = "regression_cond_body_in_loop"
path = "tests/regression_cond_body_in_loop.rs"
[[test]]
name = "regression_consecutive_regs"
path = "tests/regression_consecutive_regs.rs"
[[test]]
name = "regression_cranelift_error_span"
path = "tests/regression_cranelift_error_span.rs"
[[test]]
name = "regression_cranelift_panic_fallback"
path = "tests/regression_cranelift_panic_fallback.rs"
[[test]]
name = "regression_cross_engine_error_parity"
path = "tests/regression_cross_engine_error_parity.rs"
[[test]]
name = "regression_csv_tsv_writer"
path = "tests/regression_csv_tsv_writer.rs"
[[test]]
name = "regression_ct"
path = "tests/regression_ct.rs"
[[test]]
name = "regression_cumsum"
path = "tests/regression_cumsum.rs"
[[test]]
name = "regression_datetime"
path = "tests/regression_datetime.rs"
[[test]]
name = "regression_default_engine_is_vm"
path = "tests/regression_default_engine_is_vm.rs"
[[test]]
name = "regression_dot_keywords"
path = "tests/regression_dot_keywords.rs"
[[test]]
name = "regression_dot_list_index"
path = "tests/regression_dot_list_index.rs"
[[test]]
name = "regression_double_minus_trap"
path = "tests/regression_double_minus_trap.rs"
[[test]]
name = "regression_enumerate"
path = "tests/regression_enumerate.rs"
[[test]]
name = "regression_env_all"
path = "tests/regression_env_all.rs"
[[test]]
name = "regression_fft"
path = "tests/regression_fft.rs"
[[test]]
name = "regression_field_access_underscore_typed"
path = "tests/regression_field_access_underscore_typed.rs"
[[test]]
name = "regression_flat"
path = "tests/regression_flat.rs"
[[test]]
name = "regression_flat_cross_engine"
path = "tests/regression_flat_cross_engine.rs"
[[test]]
name = "regression_flatmap"
path = "tests/regression_flatmap.rs"
[[test]]
name = "regression_fld_reserved"
path = "tests/regression_fld_reserved.rs"
[[test]]
name = "regression_fmt2"
path = "tests/regression_fmt2.rs"
[[test]]
name = "regression_fmt_format_spec"
path = "tests/regression_fmt_format_spec.rs"
[[test]]
name = "regression_fmt_in_arg_position"
path = "tests/regression_fmt_in_arg_position.rs"
[[test]]
name = "regression_fnref_plumbing"
path = "tests/regression_fnref_plumbing.rs"
[[test]]
name = "regression_fnref_var_call"
path = "tests/regression_fnref_var_call.rs"
[[test]]
name = "regression_friendly_errors"
path = "tests/regression_friendly_errors.rs"
[[test]]
name = "regression_frq"
path = "tests/regression_frq.rs"
[[test]]
name = "regression_fs_builtins"
path = "tests/regression_fs_builtins.rs"
[[test]]
name = "regression_function_as_call_arg"
path = "tests/regression_function_as_call_arg.rs"
[[test]]
name = "regression_hd_tl_oob"
path = "tests/regression_hd_tl_oob.rs"
[[test]]
name = "regression_hof_3b"
path = "tests/regression_hof_3b.rs"
[[test]]
name = "regression_hof_error_parity"
path = "tests/regression_hof_error_parity.rs"
[[test]]
name = "regression_hof_flt_fld_flatmap"
path = "tests/regression_hof_flt_fld_flatmap.rs"
[[test]]
name = "regression_hof_map"
path = "tests/regression_hof_map.rs"
[[test]]
name = "regression_inline_lambda"
path = "tests/regression_inline_lambda.rs"
[[test]]
name = "regression_inline_lambda_typevar"
path = "tests/regression_inline_lambda_typevar.rs"
[[test]]
name = "regression_inverse_trig"
path = "tests/regression_inverse_trig.rs"
[[test]]
name = "regression_jit_flag_canonical"
path = "tests/regression_jit_flag_canonical.rs"
[[test]]
name = "regression_jit_nil_sweep_batch1"
path = "tests/regression_jit_nil_sweep_batch1.rs"
[[test]]
name = "regression_jit_nil_sweep_batch2"
path = "tests/regression_jit_nil_sweep_batch2.rs"
[[test]]
name = "regression_jit_nil_sweep_batch3"
path = "tests/regression_jit_nil_sweep_batch3.rs"
[[test]]
name = "regression_jit_nil_sweep_batch4"
path = "tests/regression_jit_nil_sweep_batch4.rs"
[[test]]
name = "regression_jit_nil_sweep_batch5"
path = "tests/regression_jit_nil_sweep_batch5.rs"
[[test]]
name = "regression_jit_nil_sweep_batch6"
path = "tests/regression_jit_nil_sweep_batch6.rs"
[[test]]
name = "regression_jit_nil_sweep_batch7"
path = "tests/regression_jit_nil_sweep_batch7.rs"
[[test]]
name = "regression_jpar_stream"
path = "tests/regression_jpar_stream.rs"
[[test]]
name = "regression_jpth_jsonpath_diagnostic"
path = "tests/regression_jpth_jsonpath_diagnostic.rs"
[[test]]
name = "regression_jpth_object_array_typed"
path = "tests/regression_jpth_object_array_typed.rs"
[[test]]
name = "regression_kebab_precedence"
path = "tests/regression_kebab_precedence.rs"
[[test]]
name = "regression_lambdas_cross_engine"
path = "tests/regression_lambdas_cross_engine.rs"
[[test]]
name = "regression_leading_uppercase_dot"
path = "tests/regression_leading_uppercase_dot.rs"
[[test]]
name = "regression_len_flt_count_fused"
path = "tests/regression_len_flt_count_fused.rs"
[[test]]
name = "regression_len_flt_has_k_count"
path = "tests/regression_len_flt_has_k_count.rs"
[[test]]
name = "regression_linalg_advanced"
path = "tests/regression_linalg_advanced.rs"
[[test]]
name = "regression_linalg_basic"
path = "tests/regression_linalg_basic.rs"
[[test]]
name = "regression_list_accumulator_tree"
path = "tests/regression_list_accumulator_tree.rs"
[[test]]
name = "regression_list_literal_refs"
path = "tests/regression_list_literal_refs.rs"
[[test]]
name = "regression_list_mutation"
path = "tests/regression_list_mutation.rs"
[[test]]
name = "regression_listappend_aliasing"
path = "tests/regression_listappend_aliasing.rs"
[[test]]
name = "regression_listappend_inplace_jit"
path = "tests/regression_listappend_inplace_jit.rs"
[[test]]
name = "regression_listlit_builtin_call_hint"
path = "tests/regression_listlit_builtin_call_hint.rs"
[[test]]
name = "regression_listlit_fnref_greedy"
path = "tests/regression_listlit_fnref_greedy.rs"
[[test]]
name = "regression_listlit_register_overflow"
path = "tests/regression_listlit_register_overflow.rs"
[[test]]
name = "regression_loop_print"
path = "tests/regression_loop_print.rs"
[[test]]
name = "regression_ls_freed_as_binding"
path = "tests/regression_ls_freed_as_binding.rs"
[[test]]
name = "regression_lset_alias"
path = "tests/regression_lset_alias.rs"
[[test]]
name = "regression_main_err_exit_code"
path = "tests/regression_main_err_exit_code.rs"
[[test]]
name = "regression_main_ok_stdout_bare"
path = "tests/regression_main_ok_stdout_bare.rs"
[[test]]
name = "regression_map_verifier_hole"
path = "tests/regression_map_verifier_hole.rs"
[[test]]
name = "regression_mapr"
path = "tests/regression_mapr.rs"
[[test]]
name = "regression_match_block"
path = "tests/regression_match_block.rs"
[[test]]
name = "regression_match_in_loop"
path = "tests/regression_match_in_loop.rs"
[[test]]
name = "regression_match_result_exhaustive"
path = "tests/regression_match_result_exhaustive.rs"
[[test]]
name = "regression_math_builtins"
path = "tests/regression_math_builtins.rs"
[[test]]
name = "regression_math_extra"
path = "tests/regression_math_extra.rs"
[[test]]
name = "regression_mget_bang"
path = "tests/regression_mget_bang.rs"
[[test]]
name = "regression_mget_default"
path = "tests/regression_mget_default.rs"
[[test]]
name = "regression_min_max_list"
path = "tests/regression_min_max_list.rs"
[[test]]
name = "regression_minus_prefix_call"
path = "tests/regression_minus_prefix_call.rs"
[[test]]
name = "regression_minus_zero_decl_parse"
path = "tests/regression_minus_zero_decl_parse.rs"
[[test]]
name = "regression_mset_accumulator"
path = "tests/regression_mset_accumulator.rs"
[[test]]
name = "regression_mset_accumulator_tree"
path = "tests/regression_mset_accumulator_tree.rs"
[[test]]
name = "regression_multi_fn_error_span"
path = "tests/regression_multi_fn_error_span.rs"
[[test]]
name = "regression_multi_line_body_span_drift"
path = "tests/regression_multi_line_body_span_drift.rs"
[[test]]
name = "regression_multiline_fn_body"
path = "tests/regression_multiline_fn_body.rs"
[[test]]
name = "regression_neg_index_slice"
path = "tests/regression_neg_index_slice.rs"
[[test]]
name = "regression_neg_literal_edge_pin"
path = "tests/regression_neg_literal_edge_pin.rs"
[[test]]
name = "regression_neg_literal_papercut"
path = "tests/regression_neg_literal_papercut.rs"
[[test]]
name = "regression_negative_literal_after_op"
path = "tests/regression_negative_literal_after_op.rs"
[[test]]
name = "regression_nested_generic_types"
path = "tests/regression_nested_generic_types.rs"
[[test]]
name = "regression_now_ms_cross_engine"
path = "tests/regression_now_ms_cross_engine.rs"
[[test]]
name = "regression_numeric_map_keys"
path = "tests/regression_numeric_map_keys.rs"
[[test]]
name = "regression_ord_chr"
path = "tests/regression_ord_chr.rs"
[[test]]
name = "regression_p001_cascade"
path = "tests/regression_p001_cascade.rs"
[[test]]
name = "regression_p020_record_tail"
path = "tests/regression_p020_record_tail.rs"
[[test]]
name = "regression_pad"
path = "tests/regression_pad.rs"
[[test]]
name = "regression_param_fuzzy"
path = "tests/regression_param_fuzzy.rs"
[[test]]
name = "regression_paren_field_access"
path = "tests/regression_paren_field_access.rs"
[[test]]
name = "regression_partition"
path = "tests/regression_partition.rs"
[[test]]
name = "regression_persona_diagnostic_batch_3"
path = "tests/regression_persona_diagnostic_batch_3.rs"
[[test]]
name = "regression_phase2_closure_capture"
path = "tests/regression_phase2_closure_capture.rs"
[[test]]
name = "regression_phase2_hof_finalizers"
path = "tests/regression_phase2_hof_finalizers.rs"
[[test]]
name = "regression_phase2_hof_native_dispatch"
path = "tests/regression_phase2_hof_native_dispatch.rs"
[[test]]
name = "regression_plus_literal_operand_order"
path = "tests/regression_plus_literal_operand_order.rs"
[[test]]
name = "regression_prefix_arg_depth"
path = "tests/regression_prefix_arg_depth.rs"
[[test]]
name = "regression_prefix_binop_call"
path = "tests/regression_prefix_binop_call.rs"
[[test]]
name = "regression_prefix_nil_coalesce"
path = "tests/regression_prefix_nil_coalesce.rs"
[[test]]
name = "regression_prefix_op_eof_span"
path = "tests/regression_prefix_op_eof_span.rs"
[[test]]
name = "regression_range"
path = "tests/regression_range.rs"
[[test]]
name = "regression_range_expr"
path = "tests/regression_range_expr.rs"
[[test]]
name = "regression_record_register_overflow"
path = "tests/regression_record_register_overflow.rs"
[[test]]
name = "regression_reserved_names_doc"
path = "tests/regression_reserved_names_doc.rs"
[[test]]
name = "regression_rgxall"
path = "tests/regression_rgxall.rs"
[[test]]
name = "regression_rgxall1"
path = "tests/regression_rgxall1.rs"
[[test]]
name = "regression_rgxsub"
path = "tests/regression_rgxsub.rs"
[[test]]
name = "regression_rndn"
path = "tests/regression_rndn.rs"
[[test]]
name = "regression_rng_range_alias"
path = "tests/regression_rng_range_alias.rs"
[[test]]
name = "regression_rsrt"
path = "tests/regression_rsrt.rs"
[[test]]
name = "regression_rsrt_keyfn"
path = "tests/regression_rsrt_keyfn.rs"
[[test]]
name = "regression_run_builtin"
path = "tests/regression_run_builtin.rs"
[[test]]
name = "regression_runtime_error_spans_helpers"
path = "tests/regression_runtime_error_spans_helpers.rs"
[[test]]
name = "regression_safe_field_missing"
path = "tests/regression_safe_field_missing.rs"
[[test]]
name = "regression_scientific_notation"
path = "tests/regression_scientific_notation.rs"
[[test]]
name = "regression_setops"
path = "tests/regression_setops.rs"
[[test]]
name = "regression_shadow_rebind_alias"
path = "tests/regression_shadow_rebind_alias.rs"
[[test]]
name = "regression_sibling_helper_slurp"
path = "tests/regression_sibling_helper_slurp.rs"
[[test]]
name = "regression_sleep"
path = "tests/regression_sleep.rs"
[[test]]
name = "regression_snake_field_access"
path = "tests/regression_snake_field_access.rs"
[[test]]
name = "regression_stats"
path = "tests/regression_stats.rs"
[[test]]
name = "regression_string_accumulator_tree"
path = "tests/regression_string_accumulator_tree.rs"
[[test]]
name = "regression_string_case"
path = "tests/regression_string_case.rs"
[[test]]
name = "regression_string_escapes"
path = "tests/regression_string_escapes.rs"
[[test]]
name = "regression_sum_avg_cross_engine"
path = "tests/regression_sum_avg_cross_engine.rs"
[[test]]
name = "regression_take_drop"
path = "tests/regression_take_drop.rs"
[[test]]
name = "regression_ternary_call_operand"
path = "tests/regression_ternary_call_operand.rs"
[[test]]
name = "regression_ternary_h_keyword"
path = "tests/regression_ternary_h_keyword.rs"
[[test]]
name = "regression_trm_alias"
path = "tests/regression_trm_alias.rs"
[[test]]
name = "regression_uniqby"
path = "tests/regression_uniqby.rs"
[[test]]
name = "regression_unknown_flag_guard"
path = "tests/regression_unknown_flag_guard.rs"
[[test]]
name = "regression_unq_numbers"
path = "tests/regression_unq_numbers.rs"
[[test]]
name = "regression_vm_register_overflow_attribution"
path = "tests/regression_vm_register_overflow_attribution.rs"
[[test]]
name = "regression_wh_gt_trap"
path = "tests/regression_wh_gt_trap.rs"
[[test]]
name = "regression_wildcard_arm_bind"
path = "tests/regression_wildcard_arm_bind.rs"
[[test]]
name = "regression_window"
path = "tests/regression_window.rs"
[[test]]
name = "regression_window_cranelift"
path = "tests/regression_window_cranelift.rs"
[[test]]
name = "regression_window_fused"
path = "tests/regression_window_fused.rs"
[[test]]
name = "regression_wr_json_overload"
path = "tests/regression_wr_json_overload.rs"
[[test]]
name = "regression_xs_dot_variable_index"
path = "tests/regression_xs_dot_variable_index.rs"
[[test]]
name = "regression_zip"
path = "tests/regression_zip.rs"
[[test]]
name = "skill_md"
path = "tests/skill_md.rs"
[[test]]
name = "skill_modular"
path = "tests/skill_modular.rs"
[[test]]
name = "tools"
path = "tests/tools.rs"
[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.cranelift-codegen]
version = "0.116"
optional = true
[dependencies.cranelift-frontend]
version = "0.116"
optional = true
[dependencies.cranelift-jit]
version = "0.116"
optional = true
[dependencies.cranelift-module]
version = "0.116"
optional = true
[dependencies.cranelift-native]
version = "0.116"
optional = true
[dependencies.cranelift-object]
version = "0.116"
optional = true
[dependencies.fastrand]
version = "2"
[dependencies.inkwell]
version = "0.5"
features = ["llvm18-0"]
optional = true
[dependencies.libc]
version = "0.2"
[dependencies.logos]
version = "0.16.1"
[dependencies.minreq]
version = "2.14"
features = ["https-rustls"]
optional = true
default-features = false
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.target-lexicon]
version = "0.12"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"process",
"io-util",
"sync",
]
optional = true
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.wiremock]
version = "0.6"
[profile.release]
lto = true
codegen-units = 1
strip = true