-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (49 loc) · 1.92 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (49 loc) · 1.92 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "async_py"
version = "0.3.2"
description = "A Rust library for calling Python code asynchronously using pyo3 or rustpython."
edition = "2021"
license = "MIT"
repository = "https://github.com/marcomq/async_py"
readme = "README.md"
keywords = ["python", "async", "pyo3", "rustpython", "ffi"]
categories = ["api-bindings", "asynchronous", "external-ffi-bindings"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dunce = "1"
serde_json = "1"
thiserror = "2"
tokio = { version = "1", features = ["sync", "macros", "rt", "rt-multi-thread", "time"] }
[features]
default = ["pyo3"]
# default = ["rustpython"]
pyo3 = ["dep:pyo3"]
rustpython = ["dep:rustpython-vm", "dep:rustpython-stdlib", "dep:mt19937"]
[dependencies.pyo3]
version = "0.29"
features = ["auto-initialize"]
optional = true
[dependencies.rustpython-vm]
version = "0.5"
optional = true
features = ["threading", "serde", "importlib"]
[dependencies.rustpython-stdlib]
version = "0.5"
optional = true
features = ["threading"]
# rustpython-stdlib's `random` module needs the `_random`/MT19937 implementation
# from this crate. rustpython-stdlib 0.5.0 itself declares `mt19937 = "<=3.2"`
# (an upper-bound-only requirement, not a caret range), so cargo is otherwise
# free to satisfy that with the much older 2.0.1, which doesn't have the APIs
# rustpython-stdlib 0.5.0's source actually calls and fails to compile - this is
# what consumers hit with a stale lockfile. Pinning `~3.2` here (instead of a
# bare lower-bound `>=3`) is required to make cargo's resolver land both this
# crate's and rustpython-stdlib's dependency on the *same* mt19937 instance
# (3.2.0, the highest version in their shared compatible range) rather than
# resolving two separate, unrelated copies side by side.
[dependencies.mt19937]
version = "~3.2"
optional = true
[dev-dependencies]
tempfile = "3"
tokio = { version = "1", features = ["full"] }