# 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 = "2021"
rust-version = "1.70"
name = "ffi-bridge"
version = "1.0.0"
authors = ["Subaskar Sivakumar <subaskar.sr@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Memory-safe Go↔Rust FFI boundary helpers: buffer management, error propagation, and callback registration"
homepage = "https://github.com/ChainPrimitives/ffi-bridge"
documentation = "https://docs.rs/ffi-bridge"
readme = "README.md"
keywords = [
    "ffi",
    "go",
    "rust",
    "bridge",
    "memory-safe",
]
categories = [
    "api-bindings",
    "memory-management",
]
license = "MIT"
repository = "https://github.com/ChainPrimitives/ffi-bridge"

[lib]
name = "ffi_bridge"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

[dependencies.once_cell]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true
