# 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 = "fswtch-sys"
version = "0.1.7"
authors = ["Yehor Smoliakov <egorsmkv@gmail.com>"]
build = "build.rs"
links = "freeswitch"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings and helpers for writing FreeSWITCH modules"
readme = "README.md"
license = "MIT"
repository = "https://github.com/RustedBytes/fswtch"

[features]
bindgen = ["dep:bindgen"]
bundled = [
    "bindgen",
    "dep:fswtch-src",
]
default = ["bundled"]

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

[build-dependencies.bindgen]
version = "0.71"
optional = true

[build-dependencies.fswtch-src]
version = "0.1.7"
optional = true

[build-dependencies.pkg-config]
version = "0.3"

[lints.clippy]
missing_safety_doc = "deny"

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
