Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --locked
# Exercise GNU ld's archive ordering, including the Linux ARM64 release case.
- name: Build with GNU ld
run: cargo rustc --locked -- -C link-arg=-fuse-ld=bfd
- run: cargo test --locked --all-targets

audit:
Expand Down
2 changes: 1 addition & 1 deletion .tabularium
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "hackernews",
"name": "Hacker News",
"version": "0.1.2",
"version": "0.1.3",
"kind": "driver",
"description": "Query Hacker News stories, comments, users and polls as SQL tables using the public API.",
"engine": "hackernews",
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tabularis-hackernews-plugin"
version = "0.1.2"
version = "0.1.3"
edition = "2021"

[dependencies]
Expand Down
9 changes: 8 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "windows" {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
if target_os == "windows" {
println!("cargo:rustc-link-lib=rstrtmgr");
}

if target_os == "linux" && std::env::var("CARGO_CFG_TARGET_ENV").unwrap_or_default() == "gnu" {
// DuckDB's static extension registrar is linked after its implementation.
// GNU ld needs the symbol up front to extract it from the earlier archive.
println!("cargo:rustc-link-arg=-Wl,--undefined=duckdb_register_static_extensions");
}
}
Loading