Browse Source

Add `generate-import-lib` experimental feature

tags/test-git
haixuantao 10 months ago
parent
commit
d464dc8c98
5 changed files with 16 additions and 3 deletions
  1. +2
    -2
      .github/workflows/node_hub_test.sh
  2. +10
    -0
      Cargo.lock
  3. +2
    -1
      node-hub/dora-kit-car/Cargo.toml
  4. +1
    -0
      node-hub/dora-object-to-pose/Cargo.toml
  5. +1
    -0
      node-hub/dora-rerun/Cargo.toml

+ 2
- 2
.github/workflows/node_hub_test.sh View File

@@ -57,10 +57,10 @@ else

# x86_64-pc-windows-gnu
rustup target add x86_64-pc-windows-gnu
maturin build --target x86_64-pc-windows-gnu --zig --release
maturin build --target x86_64-pc-windows-gnu --release
# If GITHUB_EVENT_NAME is release or workflow_dispatch, publish the wheel
if [ "$GITHUB_EVENT_NAME" == "release" ] || [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then
maturin publish --target x86_64-pc-windows-gnu --skip-existing --zig
maturin publish --target x86_64-pc-windows-gnu --skip-existing
fi

elif [[ -f "Cargo.toml" && -f "pyproject.toml" && "$(uname)" = "Darwin" ]]; then


+ 10
- 0
Cargo.lock View File

@@ -7649,6 +7649,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
dependencies = [
"once_cell",
"python3-dll-a",
"target-lexicon",
]

@@ -7687,6 +7688,15 @@ dependencies = [
"syn 2.0.94",
]

[[package]]
name = "python3-dll-a"
version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49fe4227a288cf9493942ad0220ea3f185f4d1f2a14f197f7344d6d02f4ed4ed"
dependencies = [
"cc",
]

[[package]]
name = "pythonize"
version = "0.23.0"


+ 2
- 1
node-hub/dora-kit-car/Cargo.toml View File

@@ -23,7 +23,8 @@ eyre = "0.6.8"
pyo3 = { workspace = true, features = [
"extension-module",
"abi3",
"eyre"
"eyre",
"generate-import-lib",
], optional = true }
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"


+ 1
- 0
node-hub/dora-object-to-pose/Cargo.toml View File

@@ -12,6 +12,7 @@ pyo3 = { workspace = true, features = [
"extension-module",
"abi3",
"eyre",
"generate-import-lib",
], optional = true }

[features]


+ 1
- 0
node-hub/dora-rerun/Cargo.toml View File

@@ -24,6 +24,7 @@ pyo3 = { workspace = true, features = [
"extension-module",
"abi3",
"eyre",
"generate-import-lib",
], optional = true }
bytemuck = "1.20.0"



Loading…
Cancel
Save