From 436df72edad40fe23942243ca722c7a720ce4c21 Mon Sep 17 00:00:00 2001 From: Takashi Kitao Date: Mon, 8 Aug 2022 18:55:26 +0900 Subject: [PATCH] Modified for Maturin and emscripten --- lib/wrapper/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/wrapper/Cargo.toml b/lib/wrapper/Cargo.toml index 35c7ad0bde..d7e30e9488 100644 --- a/lib/wrapper/Cargo.toml +++ b/lib/wrapper/Cargo.toml @@ -11,9 +11,16 @@ categories = ["game-engines", "graphics", "multimedia"] keywords = ["game", "gamedev", "python"] [lib] +name = "pyxel_wrapper" crate-type = ["cdylib"] [dependencies] pyo3 = { version = "0.16", features = ["abi3-py37", "extension-module"] } pyxel-engine = { path = "../engine", version="1.7.2" } + +[target.'cfg(not(target_os = "emscripten"))'.dependencies] sysinfo = "0.23" + +[package.metadata.maturin] +name = "pyxel.pyxel_wrapper" +python-source = "../../src"