# 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"
name = "pyo3-ffi"
version = "0.23.2"
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
build = "build.rs"
links = "python"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Python-API bindings for the PyO3 ecosystem"
homepage = "https://github.com/pyo3/pyo3"
readme = "README.md"
keywords = [
    "pyo3",
    "python",
    "cpython",
    "ffi",
]
categories = [
    "api-bindings",
    "development-tools::ffi",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pyo3/pyo3"

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

[dependencies.libc]
version = "0.2.62"

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

[build-dependencies.pyo3-build-config]
version = "=0.23.2"
features = ["resolve-config"]

[features]
abi3 = ["pyo3-build-config/abi3"]
abi3-py310 = [
    "abi3-py311",
    "pyo3-build-config/abi3-py310",
]
abi3-py311 = [
    "abi3-py312",
    "pyo3-build-config/abi3-py311",
]
abi3-py312 = [
    "abi3",
    "pyo3-build-config/abi3-py312",
]
abi3-py37 = [
    "abi3-py38",
    "pyo3-build-config/abi3-py37",
]
abi3-py38 = [
    "abi3-py39",
    "pyo3-build-config/abi3-py38",
]
abi3-py39 = [
    "abi3-py310",
    "pyo3-build-config/abi3-py39",
]
default = []
extension-module = ["pyo3-build-config/extension-module"]
generate-import-lib = ["pyo3-build-config/python3-dll-a"]

[lints.clippy]
checked_conversions = "warn"
dbg_macro = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
let_unit_value = "warn"
manual_assert = "warn"
manual_ok_or = "warn"
todo = "warn"
unnecessary_wraps = "warn"
used_underscore_binding = "warn"
useless_transmute = "warn"

[lints.rust]
elided_lifetimes_in_paths = "warn"
invalid_doc_attributes = "warn"
rust_2021_prelude_collisions = "warn"
unused_lifetimes = "warn"

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

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "warn"
