From 11c4c49ad1055139e342d33816c53bb7d303e2a6 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 10 Jan 2025 13:31:50 +0000 Subject: [PATCH] chore: export rust flag for musl build --- .circleci/config.yml | 7 +++++++ influxdb3_py_api/Cargo.toml | 2 +- influxdb3_server/Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 95559ccf39..345327aa45 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -260,6 +260,13 @@ jobs: command: | apt-get update apt-get install -y python3 python3-dev + - when: + condition: + equal: [ << parameters.target >>, x86_64-unknown-linux-musl ] + steps: + - run: + name: add -crt-satic flag + command: export RUSTFLAGS="-C target-feature=-crt-static" - run: name: Install Target command: rustup target add << parameters.target >> diff --git a/influxdb3_py_api/Cargo.toml b/influxdb3_py_api/Cargo.toml index 4f6c3ae54f..803356d2aa 100644 --- a/influxdb3_py_api/Cargo.toml +++ b/influxdb3_py_api/Cargo.toml @@ -24,7 +24,7 @@ tokio.workspace = true [dependencies.pyo3] version = "0.23.3" # this is necessary to automatically initialize the Python interpreter -features = ["auto-initialize", "experimental-async"] +features = ["auto-initialize", "experimental-async", "abi3"] optional = true diff --git a/influxdb3_server/Cargo.toml b/influxdb3_server/Cargo.toml index 0a606ae7d5..6612134556 100644 --- a/influxdb3_server/Cargo.toml +++ b/influxdb3_server/Cargo.toml @@ -81,7 +81,7 @@ unicode-segmentation.workspace = true [dependencies.pyo3] version = "0.23.3" # this is necessary to automatically initialize the Python interpreter -features = ["auto-initialize"] +features = ["auto-initialize", "abi3"] optional = true [features]