fswtch 0.1.8

Rust bindings and helpers for writing FreeSWITCH modules
Documentation
# 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"
version = "0.1.8"
authors = ["Yehor Smoliakov <egorsmkv@gmail.com>"]
build = false
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 = ["fswtch-sys/bindgen"]
bundled = ["fswtch-sys/bundled"]
default = ["bundled"]

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

[[example]]
name = "mod_api_suite"
crate-type = ["cdylib"]
path = "examples/mod_api_suite.rs"

[[example]]
name = "mod_app_playback_control"
crate-type = ["cdylib"]
path = "examples/mod_app_playback_control.rs"

[[example]]
name = "mod_async_job_queue"
crate-type = ["cdylib"]
path = "examples/mod_async_job_queue.rs"

[[example]]
name = "mod_cdr_enricher"
crate-type = ["cdylib"]
path = "examples/mod_cdr_enricher.rs"

[[example]]
name = "mod_chatbot_bridge"
crate-type = ["cdylib"]
path = "examples/mod_chatbot_bridge.rs"

[[example]]
name = "mod_config_xml"
crate-type = ["cdylib"]
path = "examples/mod_config_xml.rs"

[[example]]
name = "mod_endpoint_skeleton"
crate-type = ["cdylib"]
path = "examples/mod_endpoint_skeleton.rs"

[[example]]
name = "mod_event_sink"
crate-type = ["cdylib"]
path = "examples/mod_event_sink.rs"

[[example]]
name = "mod_hello"
crate-type = ["cdylib"]
path = "examples/mod_hello.rs"

[[example]]
name = "mod_http_webhook"
crate-type = ["cdylib"]
path = "examples/mod_http_webhook.rs"

[[example]]
name = "mod_lifecycle"
crate-type = ["cdylib"]
path = "examples/mod_lifecycle.rs"

[[example]]
name = "mod_local_ai_bridge"
crate-type = ["cdylib"]
path = "examples/mod_local_ai_bridge.rs"

[[example]]
name = "mod_media_bug_meter"
crate-type = ["cdylib"]
path = "examples/mod_media_bug_meter.rs"

[[example]]
name = "mod_metrics"
crate-type = ["cdylib"]
path = "examples/mod_metrics.rs"

[[example]]
name = "mod_rate_limiter"
crate-type = ["cdylib"]
path = "examples/mod_rate_limiter.rs"

[[example]]
name = "mod_registration_check"
crate-type = ["cdylib"]
path = "examples/mod_registration_check.rs"

[[example]]
name = "mod_remote_vad"
crate-type = ["cdylib"]
path = "examples/mod_remote_vad.rs"

[[example]]
name = "mod_stream_tools"
crate-type = ["cdylib"]
path = "examples/mod_stream_tools.rs"

[dependencies.fswtch-sys]
version = "0.1.8"

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

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
    "rustls-tls",
]
default-features = false

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "time",
]

[dev-dependencies.tokio-tungstenite]
version = "0.26"
features = ["native-tls"]

[lints.clippy]
missing_safety_doc = "deny"

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"