aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1992414357@qq.com <1992414357@qq.com>2025-05-28 09:08:55 +0800
committer1992414357@qq.com <1992414357@qq.com>2025-05-28 09:08:55 +0800
commit788df50b4600b1450ca10060ee16ba05c8c036b3 (patch)
tree139bbcf2eefba2807b07b29bba67f6967079b331
parent11b7b6f05bcf682d1616a74029a4415a05de9fc0 (diff)
增加 C/C++ 的绑定
-rw-r--r--core_c/Cargo.toml7
1 files changed, 5 insertions, 2 deletions
diff --git a/core_c/Cargo.toml b/core_c/Cargo.toml
index bdf762e..8fede0b 100644
--- a/core_c/Cargo.toml
+++ b/core_c/Cargo.toml
@@ -1,10 +1,13 @@
[package]
name = "nogamepads_c"
-version = "0.1.0"
edition = "2024"
[dependencies]
nogamepads-core = { path = "../core" }
+[build-dependencies]
+cbindgen = "0.29.0"
+
[lib]
-crate-type = [ "cdylib" ] \ No newline at end of file
+name = "nogamepads_lib_c"
+crate-type = [ "cdylib", "staticlib"] \ No newline at end of file