Skip to content

Commit 3bb563a

Browse files
committed
refactor: Move core to crates
1 parent 04548c1 commit 3bb563a

9 files changed

Lines changed: 19 additions & 19 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
[workspace]
2-
members = ["crates/fluxqueue-common", "crates/fluxqueue-worker"]
2+
members = ["crates/*"]
3+
resolver = "3"
34

45
[workspace.package]
6+
edition = "2024"
57
repository = "https://github.com/CCXLV/fluxqueue"
68
homepage = "https://fluxqueue.ccxlv.dev"
79
authors = ["Giorgi Merebashvili <mereba2627@gmail.com>"]
8-
edition = "2024"
9-
10-
[package]
11-
name = "fluxqueue_core"
12-
version = "0.2.0"
13-
edition = "2024"
14-
15-
[lib]
16-
name = "fluxqueue_core"
17-
crate-type = ["cdylib"]
18-
19-
[dependencies]
20-
pyo3 = { version = "0.27.2", features = ["experimental-async"] }
21-
pyo3-async-runtimes = { version = "0.27.0", features = ["tokio-runtime"] }
22-
tokio = { version = "1.49.0", features = ["rt-multi-thread", "sync"] }
23-
deadpool-redis = { version = "0.22.1", features = ["rt_tokio_1"] }
24-
fluxqueue-common = { path = "./crates/fluxqueue-common" }
2510

2611
[workspace.dependencies]
2712
fluxqueue-common = { path = "./crates/fluxqueue-common" }

crates/fluxqueue-core/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "fluxqueue_core"
3+
version = "0.2.0"
4+
repository.workspace = true
5+
homepage.workspace = true
6+
authors.workspace = true
7+
edition.workspace = true
8+
9+
[dependencies]
10+
pyo3 = { version = "0.27.2", features = ["experimental-async"] }
11+
pyo3-async-runtimes = { version = "0.27.0", features = ["tokio-runtime"] }
12+
tokio = { version = "1.49.0", features = ["rt-multi-thread", "sync"] }
13+
deadpool-redis = { version = "0.22.1", features = ["rt_tokio_1"] }
14+
fluxqueue-common.workspace = true

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ docs = [
5555
build = ["maturin"]
5656

5757
[tool.maturin]
58-
python-source = "."
5958
module-name = "fluxqueue.fluxqueue_core"
59+
python-source = "python"
60+
manifest-path = "crates/fluxqueue-core/Cargo.toml"
6061

6162
[tool.ruff]
6263
line-length = 88

0 commit comments

Comments
 (0)