lean-rs-host 0.1.0

Opinionated Rust host stack for embedding Lean 4 as a theorem-prover capability: typed sessions, kernel-check evidence handles, bounded MetaM services, batching, and session pooling. Built on top of the `lean-rs` FFI primitive.
# 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.91"
name = "lean-rs-host"
version = "0.1.0"
authors = ["Jacob Reinhold"]
build = "build.rs"
include = [
    "src/**/*.rs",
    "build.rs",
    "tests/**/*.rs",
    "tests/compile_fail/**",
    "examples/**/*.rs",
    "benches/**/*.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Opinionated Rust host stack for embedding Lean 4 as a theorem-prover capability: typed sessions, kernel-check evidence handles, bounded MetaM services, batching, and session pooling. Built on top of the `lean-rs` FFI primitive."
documentation = "https://docs.rs/lean-rs-host"
readme = "README.md"
keywords = [
    "bindings",
    "embedding",
    "host",
    "lean",
    "lean4",
]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jcreinhold/lean-rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.lean-rs]
version = "0.1.0"

[dependencies.lean-rs-sys]
version = "0.1.0"

[dependencies.libloading]
version = "0.8"

[dependencies.object]
version = "0.36"
features = [
    "read",
    "std",
]
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.tracing]
version = "0.1"
features = [
    "std",
    "attributes",
]
default-features = false

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "registry",
    "std",
]
default-features = false

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "registry",
    "std",
    "fmt",
    "env-filter",
]
default-features = false

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

[lints.clippy]
arithmetic_side_effects = "warn"
blanket_clippy_restriction_lints = "warn"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
disallowed_methods = "deny"
disallowed_types = "deny"
exit = "warn"
expect_used = "warn"
float_arithmetic = "allow"
get_unwrap = "warn"
implicit_clone = "warn"
indexing_slicing = "warn"
inefficient_to_string = "warn"
items_after_statements = "allow"
large_stack_arrays = "warn"
lint_groups_priority = "warn"
manual_memcpy = "warn"
map_flatten = "warn"
map_unwrap_or = "warn"
match_same_arms = "allow"
mem_forget = "deny"
missing_const_for_fn = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mutex_integer = "warn"
needless_collect = "warn"
option_if_let_else = "allow"
panic = "warn"
ptr_as_ptr = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
similar_names = "allow"
single_match_else = "allow"
todo = "warn"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unimplemented = "warn"
unnecessary_wraps = "allow"
unreachable = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

[lints.clippy.all]
level = "warn"
priority = -10

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.complexity]
level = "warn"
priority = -9

[lints.clippy.correctness]
level = "warn"
priority = -8

[lints.clippy.nursery]
level = "warn"
priority = -5

[lints.clippy.pedantic]
level = "warn"
priority = -4

[lints.clippy.perf]
level = "warn"
priority = -6

[lints.clippy.style]
level = "warn"
priority = -3

[lints.clippy.suspicious]
level = "warn"
priority = -7

[lints.rust]
future-incompatible = "warn"
let-underscore = "warn"
nonstandard-style = "warn"
redundant_lifetimes = "warn"
rust-2018-idioms = "warn"
rust-2024-compatibility = "deny"
single_use_lifetimes = "warn"
trivial_casts = "warn"
unreachable_pub = "warn"
unsafe-code = "deny"

[lints.rust.unused]
level = "warn"
priority = -1