refacotr: use omrf to replace all wheels I invented

This commit is contained in:
2026-08-15 09:50:15 +08:00
parent 64ccc083fb
commit a595d7e6e7
10 changed files with 279 additions and 731 deletions
+20 -2
View File
@@ -3,14 +3,32 @@ name = "wfassoc-cdylib"
version = "0.1.0"
authors = ["yyc12345"]
edition = "2024"
description = "The dynamic wfassoc library exposed for C/C++ and other languages users."
license = "SPDX:MIT"
description = "The dynamic library exposed for C/C++ users reading or manipulating Windows file assocation."
license = "MIT"
[lib]
crate-type = ["cdylib"]
[dependencies]
thiserror = { workspace = true }
sarasacw-omrf = { git = "https://github.com/SarasasChipWorkshop/sarasacw-omrf.git"}
# sarasacw-omrf = { version="1.0.0", git = "https://github.com/SarasasChipWorkshop/sarasacw-omrf.git", tag = "omrf/1.0.0" }
wfassoc = { path="../wfassoc" }
slotmap = "1.1.1"
num_enum = "0.7.6"
[profile.release]
# Any panics is seen as `std::abort` in production environment.
panic = "abort"
[package.metadata.omrf]
min_version = "1.0.0"
headers = [
{ from = "cbinding/*.h", to = "" }
]
[package.metadata.omrf.cmake]
namespace_name = "wfassoc"
target_name = "wfassoc"
[package.metadata.omrf.pkgconfig]
id = "wfassoc"
name = "Windows file association manipulation library"