Skip to content

Commit 0c92c07

Browse files
authored
Merge pull request #1 from tychedelia/pycessing
Move pycessing to crates/
2 parents b6bdb16 + b4cd108 commit 0c92c07

File tree

10 files changed

+124
-6428
lines changed

10 files changed

+124
-6428
lines changed

Cargo.lock

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ bevy = { git = "https://github.com/bevyengine/bevy", branch = "main", no-default
2121
"bevy_color",
2222
] }
2323
processing = { path = "." }
24+
processing_pyo3 = { path = "crates/processing_pyo3" }
2425
processing_render = { path = "crates/processing_render" }
2526

2627
[dependencies]

crates/processing_pyo3/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "processing_pyo3"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[lints]
7+
workspace = true
8+
9+
[lib]
10+
name = "pycessing"
11+
crate-type = ["cdylib"]
12+
13+
[dependencies]
14+
pyo3 = "0.27.0"
15+
processing = { workspace = true }
16+
glfw = "0.60.0"
17+
18+
[target.'cfg(target_os = "linux")'.dependencies]
19+
glfw = { version = "0.60.0", features = ["wayland"] }
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ classifiers = [
1111
"Programming Language :: Python :: Implementation :: PyPy",
1212
]
1313
dynamic = ["version"]
14+
15+
[tool.maturin]
16+
manifest-path = "Cargo.toml"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mod pycessing {
1515

1616
let window_handle = glfw_ctx.get_window();
1717
let display_handle = glfw_ctx.get_display();
18-
let surface = create_surface(window_handle, display_handle, width, height, 1.0).unwrap();
18+
let surface = surface_create(window_handle, display_handle, width, height, 1.0).unwrap();
1919

2020
while glfw_ctx.poll_events() {
2121
begin_draw(surface).unwrap();

0 commit comments

Comments
 (0)