Skip to content

Commit 0b97604

Browse files
authored
Merge pull request #71 from jamals86/feature/api-schema
Switch reqwest to rustls-tls for cross-compilation
2 parents 810f3a1 + b45a2fd commit 0b97604

7 files changed

Lines changed: 373 additions & 575 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -948,23 +948,18 @@ jobs:
948948
- name: Create server config
949949
shell: bash
950950
run: |
951-
cat > server.toml << 'EOF'
952-
[server]
953-
host = "0.0.0.0"
954-
port = 8080
951+
# Copy the example config as base
952+
cp backend/server.example.toml server.toml
955953
956-
[storage]
957-
rocksdb_path = "./test-data/rocksdb"
958-
default_storage_path = "./test-data/storage"
954+
# Update paths and jwt_secret for smoke tests
955+
sed -i 's|rocksdb_path = "./data/rocksdb"|rocksdb_path = "./test-data/rocksdb"|g' server.toml
956+
sed -i 's|default_storage_path = "./data/storage"|default_storage_path = "./test-data/storage"|g' server.toml
957+
sed -i 's|logs_path = "./logs"|logs_path = "./test-data/logs"|g' server.toml
958+
sed -i 's|jwt_secret = ".*"|jwt_secret = "smoke-test-secret-key-minimum-32-characters-long-for-ci"|g' server.toml
959959
960-
[auth]
961-
jwt_secret = "test-secret-for-smoke-tests-only-minimum-32-characters-long"
962-
963-
[logging]
964-
level = "info"
965-
logs_path = "./test-data/logs"
966-
log_to_console = true
967-
EOF
960+
# Verify the config
961+
echo "=== server.toml ==="
962+
cat server.toml | head -100
968963
969964
- name: Start server
970965
shell: bash

Cargo.lock

Lines changed: 7 additions & 161 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ log = "0.4.29"
4040
# Async runtime
4141
tokio = { version = "1.42", features = ["rt-multi-thread", "macros", "sync", "time", "fs", "io-util", "net", "signal"] }
4242

43-
# HTTP client (with HTTP/2 support) - using native-tls to avoid aws-lc build requirements
44-
reqwest = { version = "0.13.1", default-features = false, features = ["json", "native-tls", "http2"] }
43+
# HTTP client (with HTTP/2 support) - using rustls-tls for cross-compilation compatibility
44+
# Note: native-tls requires OpenSSL which is difficult to cross-compile for aarch64
45+
reqwest = { version = "0.12.25", default-features = false, features = ["json", "rustls-tls", "http2"] }
4546

4647
# WebSocket
4748
tokio-tungstenite = { version = "0.28.0", features = ["rustls-tls-webpki-roots"] }

0 commit comments

Comments
 (0)