Skip to content

Commit

Permalink
override build opt-level
Browse files Browse the repository at this point in the history
  • Loading branch information
SunDoge committed Aug 21, 2023
1 parent 7062b50 commit 8adee4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ It can also be used without `pyo3` as a Rust library with `default-features = fa

We provide a simple example of how to transfer `image::RgbImage` to Python and `torch.Tensor` to Rust.

[Full code is here](https://github.com/SunDoge/dlparkimg).
[Full code is here](./examples/dlparkimg/).

### Rust $\rightarrow$ Python

Expand Down
3 changes: 3 additions & 0 deletions examples/dlparkimg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ crate-type = ["cdylib"]
pyo3 = "0.19.0"
dlpark = { path = "../../", features = ["pyo3"] }
image = "0.24.7"

[profile.dev.package."image"]
opt-level = 3

0 comments on commit 8adee4c

Please sign in to comment.