Split the monolithic crate into a Cargo workspace with the Python and Wasm bindings as separate member crates. - Cargo.toml: declare a `[workspace]` with members `.`/`crates/swactor-python`/`crates/swactor-wasm`, remove the `python` feature and pyo3 dependency, and change root crate-type from `["cdylib","rlib"]` to `["rlib"]` - crates/swactor-python: new cdylib crate re-exporting the PyO3 bindings (Runtime/RuntimeConfig/RuntimeHandle/Inbox/Ctx/ActorAddress/RuntimeStats), depending on `swactor` + pyo3; pyproject.toml and uv.lock relocated here from the root - crates/swactor-wasm: new cdylib crate moved from top-level `wasm/`, depending on `swactor` with `no_random` features - src/actor.rs: widen `Actor::new`, `AnyActor`, `ContextInner`, and `Ctx::raw_inner` to `pub` so the separate binding crates can drive the runtime - src/lib.rs: delete the in-tree `python` module and `#[pymodule]`, and gate the `no_random` RNG behind `all(feature = "no_random", not(feature = "getrandom"))` - tools/: relocate package.json/package-lock.json; drop the now-duplicate `wasm/Cargo.lock` Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
12 lines
223 B
TOML
12 lines
223 B
TOML
[package]
|
|
name = "swactor-python"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
name = "swactor"
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
swactor = { path = "../.." }
|
|
pyo3 = { version = "0.23", features = ["extension-module"] }
|