Skip to content

Commit

Permalink
Package metadata, ignore jemalloc on riscv
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Nov 11, 2022
1 parent 7b3a40d commit 321f53a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/Cargo.lock

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

10 changes: 8 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[package]
description = "Command line tool for exporting PostgreSQL tables or queries into Parquet files"
license = "Apache-2.0"
repository = "https://github.com/exyi/pg2parquet"
readme = "../README.md"
keywords = ["cli", "postgres", "parquet"]
documentation = "https://github.com/exyi/pg2parquet"
name = "pg2parquet"
version = "0.1.0"
version = "0.1.0-beta.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -16,7 +22,7 @@ bit-vec = "0.6.3"
pg_bigdecimal = "0.1.5"
# postgres-openssl = "0.5.0"

[target.'cfg(not(target_family = "windows"))'.dependencies]
[target.'cfg(not(any(target_family = "windows", target_arch = "riscv64")))'.dependencies]
jemallocator = "0.3.2"

[profile.release]
Expand Down
4 changes: 2 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ mod postgres_cloner;
mod pg_custom_types;
mod datatypes;

#[cfg(not(target_family = "windows"))]
#[cfg(not(any(target_family = "windows", target_arch = "riscv64")))]
use jemallocator::Jemalloc;

use crate::postgres_cloner::SchemaSettings;

#[cfg(not(target_family = "windows"))]
#[cfg(not(any(target_family = "windows", target_arch = "riscv64")))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;

Expand Down

0 comments on commit 321f53a

Please sign in to comment.