# 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.89"
name = "baml"
version = "0.216.1-beta.1"
authors = ["Boundary <contact@boundaryml.com>"]
build = "build.rs"
include = [
    "src/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "types/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "BAML runtime for Rust - type-safe LLM function calls"
homepage = "https://github.com/BoundaryML/baml"
documentation = "https://docs.boundaryml.com"
readme = "README.md"
keywords = [
    "baml",
    "boundaryml",
    "boundary",
    "llm",
    "programming-language",
]
categories = [
    "development-tools",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/BoundaryML/baml"
resolver = "2"

[features]
default = []
dev = []

[lib]
name = "baml"
path = "src/lib.rs"
doctest = false

[dependencies.async-channel]
version = "2"

[dependencies.baml-macros]
version = "0.216.1-beta.1"

[dependencies.baml-sys]
version = "0.216.1-beta.1"

[dependencies.futures-util]
version = "0.3"

[dependencies.libc]
version = "0.2"

[dependencies.once_cell]
version = "1"

[dependencies.prost]
version = "0.13"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies]

[build-dependencies.baml-sys]
version = "0.216.1-beta.1"

[build-dependencies.prost-build]
version = "0.13"

[lints.clippy]
char_lit_as_u8 = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
dbg_macro = "deny"
debug_assert_with_mut_call = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
get_unwrap = "warn"
if_not_else = "allow"
implicit_hasher = "allow"
large_stack_arrays = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_raw_string_hashes = "allow"
print_stderr = "deny"
print_stdout = "deny"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
unnecessary_debug_formatting = "allow"
unused_peekable = "warn"

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

[lints.rust]
unreachable_pub = "warn"
unsafe_code = "warn"
