# 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.82"
name = "rigetti-pyo3"
version = "0.5.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Utilities for creating a Python wrapper for a Rust library."
readme = "README.md"
keywords = [
    "python",
    "pyo3",
    "ffi",
]
categories = ["development-tools::ffi"]
license = "Apache-2.0"
repository = "https://github.com/rigetti/rigetti-pyo3"

[features]
async-tokio = [
    "dep:pyo3-async-runtimes",
    "dep:tokio",
]
opentelemetry = ["dep:qcs-dependencies-client"]
stubs = [
    "dep:indexmap",
    "dep:itertools",
    "dep:optipy",
    "dep:pyo3-stub-gen",
]

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

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

[dependencies.indexmap]
version = "2.2.6"
optional = true

[dependencies.itertools]
version = "0.14.0"
optional = true

[dependencies.optipy]
version = "0.1.0"
optional = true

[dependencies.pastey]
version = "0.2"

[dependencies.pyo3]
version = "0.27.2"
features = [
    "macros",
    "multiple-pymethods",
]
default-features = false

[dependencies.pyo3-async-runtimes]
version = "0.27.0"
features = ["tokio-runtime"]
optional = true

[dependencies.pyo3-stub-gen]
version = "0.17.2"
optional = true

[dependencies.qcs-dependencies-client]
version = "0.3.1"
optional = true

[dependencies.tokio]
version = "1.38.0"
features = ["time"]
optional = true

[dev-dependencies.optipy]
version = "0.1.0"

[dev-dependencies.thiserror]
version = "2.0"
