-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathCargo.toml
More file actions
32 lines (29 loc) · 1.19 KB
/
Copy pathCargo.toml
File metadata and controls
32 lines (29 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[package]
name = "bonsai-py"
version = "0.13.0"
edition = "2021"
rust-version = "1.80.0"
description = "Python bindings for the bonsai-bt behavior tree library"
license = "MIT"
authors = ["Kristoffer Solberg Rakstad <solkristoffer@gmail.com>"]
repository = "https://github.com/sollimann/bonsai.git"
homepage = "https://github.com/sollimann/bonsai"
publish = false
[lib]
# Internal Rust crate name — kept as `bonsai_py` to avoid colliding with the
# workspace's `bonsai-bt` crate at `bonsai/`, which also produces `libbonsai_bt.rlib`.
# The Python-facing module name is controlled separately by
# `[tool.maturin] module-name = "bonsai_bt"` in pyproject.toml.
name = "bonsai_py"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "stub_gen"
path = "src/bin/stub_gen.rs"
[dependencies]
# Note: `extension-module` is enabled by maturin via pyproject.toml's
# `[tool.maturin].features` setting. Keeping it out of the default feature
# list lets `cargo run --bin stub_gen` link libpython for the regular binary
# path; maturin still activates it for the wheel build.
pyo3 = { version = "0.28", features = ["abi3-py310"] }
bonsai-bt = { path = "../bonsai", version = "0.13", features = ["visualize"] }
pyo3-stub-gen = "0.22.3"